/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-04-02 20:59:49 UTC
  • mto: (450.1.16 trunk)
  • mto: This revision was merged to the branch mainline in revision 458.
  • Revision ID: daniel.schierbeck@gmail.com-20080402205949-t6io08bpz904ki06
Only show Signature tab if DBus and Seahorse are installed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
import dbus
25
25
 
26
26
from bzrlib.plugins.gtk import icon_path
27
 
from bzrlib.plugins.gtk import crypt
28
27
from bzrlib.osutils import format_date
29
28
from bzrlib.util.bencode import bdecode
30
29
 
 
30
try:
 
31
    from bzrlib.plugins.gtk import crypt
 
32
except ImportError:
 
33
    has_crypt = False
 
34
else:
 
35
    has_crypt = True
 
36
 
31
37
def _open_link(widget, uri):
32
38
    subprocess.Popen(['sensible-browser', uri], close_fds=True)
33
39
 
242
248
 
243
249
        self._create_general()
244
250
        self._create_relations()
245
 
        self._create_signature()
 
251
        if has_crypt:
 
252
            self._create_signature()
246
253
        self._create_file_info_view()
247
254
        self._create_bugs()
248
255