/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: Jelmer Vernooij
  • Date: 2012-03-23 12:56:39 UTC
  • Revision ID: jelmer@samba.org-20120323125639-z3qgalx8qodxr2zw
bzr-handle-patch: Use spaces rather than tabs for indentation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
279
279
        cell.set_property("xalign", 1.0)
280
280
        cell.set_property("ypad", 0)
281
281
        cell.set_property("family", "Monospace")
282
 
        cell.set_property(
283
 
            "cell-background-rgba",
284
 
            tv.get_style_context().get_background_color(Gtk.StateType.NORMAL))
 
282
        cell.set_property("cell-background-gdk",
 
283
                          tv.get_style().bg[Gtk.StateType.NORMAL])
285
284
        col = Gtk.TreeViewColumn()
286
285
        col.set_resizable(False)
287
286
        col.pack_start(cell, True)
288
287
        col.add_attribute(cell, "text", LINE_NUM_COL)
289
288
        tv.append_column(col)
290
289
 
291
 
        style_context = self.get_style_context()
292
 
 
293
290
        cell = Gtk.CellRendererText()
294
291
        cell.set_property("ypad", 0)
295
292
        cell.set_property("ellipsize", Pango.EllipsizeMode.END)
296
 
        cell.set_property(
297
 
            "cell-background-rgba",
298
 
            style_context.get_background_color(Gtk.StateType.NORMAL))
 
293
        cell.set_property("cell-background-gdk",
 
294
                          self.get_style().bg[Gtk.StateType.NORMAL])
299
295
        col = Gtk.TreeViewColumn("Committer")
300
296
        col.set_resizable(True)
301
297
        col.pack_start(cell, True)
305
301
        cell = Gtk.CellRendererText()
306
302
        cell.set_property("xalign", 1.0)
307
303
        cell.set_property("ypad", 0)
308
 
        cell.set_property(
309
 
            "cell-background-rgba",
310
 
            style_context.get_background_color(Gtk.StateType.NORMAL))
 
304
        cell.set_property("cell-background-gdk",
 
305
                          self.get_style().bg[Gtk.StateType.NORMAL])
311
306
        col = Gtk.TreeViewColumn("Revno")
312
307
        col.set_resizable(False)
313
308
        col.pack_start(cell, True)