/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 annotate/gannotate.py

  • Committer: Curtis Hovey
  • Date: 2012-03-20 12:39:08 UTC
  • mfrom: (776.3.23 gpush-do-push)
  • Revision ID: sinzui.is@verizon.net-20120320123908-lclvaiasu0e50odg
Merged faster push.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
from bzrlib.revision import NULL_REVISION, CURRENT_REVISION
28
28
 
29
29
from bzrlib.plugins.gtk.annotate.colormap import AnnotateColorSaturation
 
30
from bzrlib.plugins.gtk.i18n import _i18n
30
31
from bzrlib.plugins.gtk.revisionview import RevisionView
31
32
from bzrlib.plugins.gtk.window import Window
32
33
 
133
134
        self.annoview.set_cursor(tree_path, None, False)
134
135
        self.annoview.scroll_to_cell(tree_path, use_align=True)
135
136
 
136
 
 
137
137
    def _annotate(self, tree, file_id):
138
138
        current_revision = FakeRevision(CURRENT_REVISION)
139
139
        current_revision.committer = self.branch.get_config().username()
221
221
        hbox.show()
222
222
        vbox.pack_start(hbox, False, True, 0)
223
223
 
224
 
        self.pane = pane = Gtk.VPaned()
 
224
        self.pane = pane = Gtk.Paned.new(Gtk.Orientation.VERTICAL)
225
225
        pane.add1(swbox)
226
226
        pane.add2(self.revisionview)
227
227
        pane.show()
484
484
        self.pack_start(entry, False, False, 0)
485
485
 
486
486
        # Next/previous buttons
487
 
        button = Gtk.Button('_Next')
 
487
        button = Gtk.Button(_i18n('_Next'), use_underline=True)
488
488
        image = Gtk.Image()
489
489
        image.set_from_stock('gtk-go-forward', Gtk.IconSize.BUTTON)
490
490
        button.set_image(image)
492
492
                       'forward')
493
493
        self.pack_start(button, False, False, 0)
494
494
 
495
 
        button = Gtk.Button('_Previous')
 
495
        button = Gtk.Button(_i18n('_Previous'), use_underline=True)
496
496
        image = Gtk.Image()
497
497
        image.set_from_stock('gtk-go-back', Gtk.IconSize.BUTTON)
498
498
        button.set_image(image)