/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: Sabin Iacob (m0n5t3r)
  • Date: 2008-06-04 10:19:50 UTC
  • mto: This revision was merged to the branch mainline in revision 505.
  • Revision ID: iacobs@m0n5t3r.info-20080604101950-chwvd4kk98o6xnjj
fix typo, it actually works now

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
def _open_link(widget, uri):
43
43
    for cmd in ['sensible-browser', 'xdg-open']:
44
44
        if webbrowser._iscommand(cmd):
45
 
            webbrowser._tryorder.insert(cmd, 0)
 
45
            webbrowser._tryorder.insert(0, '%s "%%s"' % cmd)
46
46
    webbrowser.open(uri)
47
47
 
48
48
gtk.link_button_set_uri_hook(_open_link)