Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.7.1, 0.7.2, and 0.7.3

history: drop pixmap cell renderers in favor of markup

fixes #30. The markup doesn't suffer from the same problems
the pixmaps did with visibility, so this is more robust.

Changeset 269cb22297a0

Parent 2b7f2f918a8c

by Steve Borho

Changes to one file · Browse files at 269cb22297a0 Showing diff from parent 2b7f2f918a8c Diff from another changeset...

 
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
 
357
358
359
 
333
334
335
 
 
 
336
337
338
339
340
341
 
 
 
342
343
344
 
 
 
 
 
 
345
346
347
348
@@ -333,27 +333,16 @@
  self.treeview.append_column(self.id_column)     cell = gtk.CellRendererText() - mcell = gtk.CellRendererPixbuf() - pcell = gtk.CellRendererPixbuf() - hcell = gtk.CellRendererPixbuf()   cell.set_property("width-chars", 65)   cell.set_property("ellipsize", pango.ELLIPSIZE_END)   self.msg_column = gtk.TreeViewColumn("Summary")   self.msg_column.set_resizable(True)   self.msg_column.set_sizing(gtk.TREE_VIEW_COLUMN_FIXED)   self.msg_column.set_fixed_width(cell.get_size(self.treeview)[2]) - self.msg_column.pack_start(mcell, expand=False) - self.msg_column.pack_start(pcell, expand=False) - self.msg_column.pack_start(hcell, expand=False)   self.msg_column.pack_end(cell, expand=True)   self.msg_column.add_attribute(cell, "foreground", treemodel.FGCOLOR)   self.msg_column.add_attribute(cell, "markup", treemodel.MESSAGE) - self.msg_column.add_attribute(pcell, "visible", treemodel.WCPARENT) - self.msg_column.add_attribute(hcell, "visible", treemodel.HEAD) - self.msg_column.add_attribute(mcell, "visible", treemodel.MARKED) - mcell.set_property('stock-id', gtk.STOCK_GO_FORWARD) - pcell.set_property('stock-id', gtk.STOCK_HOME) - hcell.set_property('stock-id', gtk.STOCK_EXECUTE) + self.msg_column.add_attribute(cell, "underline", treemodel.WCPARENT)   self.treeview.append_column(self.msg_column)     cell = gtk.CellRendererText()