/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: Jelmer Vernooij
  • Date: 2008-06-29 19:07:23 UTC
  • mto: This revision was merged to the branch mainline in revision 515.
  • Revision ID: jelmer@samba.org-20080629190723-l8mzg9x4oec0lhsl
Return cleartext from seahorse module

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
PAGE_SIGNATURE = 2
39
39
PAGE_BUGS = 3
40
40
 
41
 
webbrowser.register('sensible-browser', None, webbrowser.GenericBrowser('sensible-browser'), -1)
42
 
webbrowser.register('xdg-open', None, webbrowser.GenericBrowser('xdg-open'), -1)
43
41
 
44
42
def _open_link(widget, uri):
 
43
    for cmd in ['sensible-browser', 'xdg-open']:
 
44
        if webbrowser._iscommand(cmd):
 
45
            webbrowser._tryorder.insert(0, '%s "%%s"' % cmd)
45
46
    webbrowser.open(uri)
46
47
 
47
48
gtk.link_button_set_uri_hook(_open_link)
219
220
                                        "This revision has not been signed.")
220
221
 
221
222
    def show_signature(self, crypttext):
222
 
        key = seahorse.verify(crypttext)
 
223
        (cleartext, key) = seahorse.verify(crypttext)
223
224
 
224
225
        if key and key.is_available():
225
226
            if key.is_trusted():
321
322
        self._create_general()
322
323
        self._create_relations()
323
324
        # Disabled because testaments aren't verified yet:
324
 
        # if has_seahorse:
325
 
        #    self._create_signature()
 
325
        if has_seahorse:
 
326
            self._create_signature()
326
327
        self._create_file_info_view()
327
328
        self._create_bugs()
328
329