/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-02-09 03:43:01 UTC
  • mto: This revision was merged to the branch mainline in revision 776.
  • Revision ID: sinzui.is@verizon.net-20120209034301-0uwkobbb0d64ugrw
Switched from Gtk.VPaned to Gtk.Paned.new(Gtk.Orientation.VERTICAL).

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