/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to revisionview.py

  • Committer: Daniel Schierbeck
  • Date: 2008-03-30 15:34:39 UTC
  • mto: (399.1.17 signatures)
  • mto: This revision was merged to the branch mainline in revision 458.
  • Revision ID: daniel.schierbeck@gmail.com-20080330153439-p59wejgurn3dus65
Made signature tab optional.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
import pango
22
22
import gobject
23
23
import subprocess
24
 
from gpg import GPGSubprocess
25
24
 
26
25
from bzrlib.osutils import format_date
27
26
from bzrlib.util.bencode import bdecode
28
27
 
29
 
gpg = GPGSubprocess()
 
28
try:
 
29
    from gpg import GPGSubprocess
 
30
except ImportError:
 
31
    gpg = None
 
32
else:
 
33
    gpg = GPGSubprocess()
30
34
 
31
35
def _open_link(widget, uri):
32
36
    subprocess.Popen(['sensible-browser', uri], close_fds=True)
100
104
 
101
105
        self._create_general()
102
106
        self._create_relations()
103
 
        self._create_signature()
 
107
        if gpg is not None:
 
108
            self._create_signature()
104
109
        self._create_file_info_view()
105
110
        self._create_bugs()
106
111