/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

Commit messages never contain config options

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
 
220
221
        hbox.show()
221
222
        vbox.pack_start(hbox, False, True, 0)
222
223
 
223
 
        self.pane = pane = Gtk.VPaned()
 
224
        self.pane = pane = Gtk.Paned.new(Gtk.Orientation.VERTICAL)
224
225
        pane.add1(swbox)
225
226
        pane.add2(self.revisionview)
226
227
        pane.show()
278
279
        cell.set_property("xalign", 1.0)
279
280
        cell.set_property("ypad", 0)
280
281
        cell.set_property("family", "Monospace")
281
 
        cell.set_property("cell-background-gdk",
282
 
                          tv.get_style().bg[Gtk.StateType.NORMAL])
 
282
        cell.set_property(
 
283
            "cell-background-rgba",
 
284
            tv.get_style_context().get_background_color(Gtk.StateType.NORMAL))
283
285
        col = Gtk.TreeViewColumn()
284
286
        col.set_resizable(False)
285
287
        col.pack_start(cell, True)
286
288
        col.add_attribute(cell, "text", LINE_NUM_COL)
287
289
        tv.append_column(col)
288
290
 
 
291
        style_context = self.get_style_context()
 
292
 
289
293
        cell = Gtk.CellRendererText()
290
294
        cell.set_property("ypad", 0)
291
295
        cell.set_property("ellipsize", Pango.EllipsizeMode.END)
292
 
        cell.set_property("cell-background-gdk",
293
 
                          self.get_style().bg[Gtk.StateType.NORMAL])
 
296
        cell.set_property(
 
297
            "cell-background-rgba",
 
298
            style_context.get_background_color(Gtk.StateType.NORMAL))
294
299
        col = Gtk.TreeViewColumn("Committer")
295
300
        col.set_resizable(True)
296
301
        col.pack_start(cell, True)
300
305
        cell = Gtk.CellRendererText()
301
306
        cell.set_property("xalign", 1.0)
302
307
        cell.set_property("ypad", 0)
303
 
        cell.set_property("cell-background-gdk",
304
 
                          self.get_style().bg[Gtk.StateType.NORMAL])
 
308
        cell.set_property(
 
309
            "cell-background-rgba",
 
310
            style_context.get_background_color(Gtk.StateType.NORMAL))
305
311
        col = Gtk.TreeViewColumn("Revno")
306
312
        col.set_resizable(False)
307
313
        col.pack_start(cell, True)
483
489
        self.pack_start(entry, False, False, 0)
484
490
 
485
491
        # Next/previous buttons
486
 
        button = Gtk.Button('_Next')
 
492
        button = Gtk.Button(_i18n('_Next'), use_underline=True)
487
493
        image = Gtk.Image()
488
494
        image.set_from_stock('gtk-go-forward', Gtk.IconSize.BUTTON)
489
495
        button.set_image(image)
491
497
                       'forward')
492
498
        self.pack_start(button, False, False, 0)
493
499
 
494
 
        button = Gtk.Button('_Previous')
 
500
        button = Gtk.Button(_i18n('_Previous'), use_underline=True)
495
501
        image = Gtk.Image()
496
502
        image.set_from_stock('gtk-go-back', Gtk.IconSize.BUTTON)
497
503
        button.set_image(image)