/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: Tarmac
  • Author(s): David Roberts, Vincent Ladeuil
  • Date: 2011-02-14 23:51:30 UTC
  • mfrom: (671.1.2 gtk)
  • Revision ID: tarmac-20110214235130-89lycv632oc708rz
Fix support for PyGTK versions without gtk.link_button_set_uri_hook().

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
            webbrowser._tryorder.insert(0, '%s "%%s"' % cmd)
52
52
    webbrowser.open(uri)
53
53
 
54
 
gtk.link_button_set_uri_hook(_open_link)
 
54
if getattr(gtk, 'link_button_set_uri_hook', None) is not None:
 
55
    # Not available before PyGtk-2.10
 
56
    gtk.link_button_set_uri_hook(_open_link)
55
57
 
56
58
class BugsTab(gtk.VBox):
57
59
 
58
60
    def __init__(self):
59
61
        super(BugsTab, self).__init__(False, 6)
60
 
    
 
62
 
61
63
        table = gtk.Table(rows=2, columns=2)
62
64
 
63
65
        table.set_row_spacings(6)