/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: Curtis Hovey
  • Date: 2011-08-29 14:12:30 UTC
  • mto: This revision was merged to the branch mainline in revision 741.
  • Revision ID: sinzui.is@verizon.net-20110829141230-6nv7h0oxjrojb1y1
Updated hacking doc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
from bzrlib import trace
24
24
from bzrlib.osutils import format_date
25
 
from bzrlib.bencode import bdecode
 
25
try:
 
26
    from bzrlib.bencode import bdecode
 
27
except ImportError:
 
28
    from bzrlib.util.bencode import bdecode
26
29
from bzrlib.testament import Testament
27
30
 
28
31
from bzrlib.plugins.gtk import icon_path
48
51
            webbrowser._tryorder.insert(0, '%s "%%s"' % cmd)
49
52
    webbrowser.open(uri)
50
53
 
 
54
if getattr(Gtk, 'link_button_set_uri_hook', None) is not None:
 
55
    Gtk.link_button_set_uri_hook(_open_link)
51
56
 
52
57
class BugsTab(Gtk.VBox):
53
58
 
322
327
    }
323
328
 
324
329
    def __init__(self, branch=None, repository=None):
325
 
        super(RevisionView, self).__init__()
 
330
        Gtk.Notebook.__init__(self)
326
331
 
327
332
        self._revision = None
328
333
        self._branch = branch
547
552
                button.add(image)
548
553
                button.connect("clicked", self._show_clicked_cb,
549
554
                               self._revision.revision_id, revid)
550
 
                hbox.pack_start(button, False, True, 0)
 
555
                hbox.pack_start(button, False, True, True, 0)
551
556
                button.show()
552
557
 
553
558
            button = Gtk.Button()
684
689
 
685
690
        self.connect('notify::revision', self._add_tags)
686
691
 
 
692
        self.avatarsbox.show()
687
693
        return self.avatarsbox
688
694
    
689
695
    def _create_parents(self):