Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9, 0.9.1, and 0.9.1.1

status: use 'inconsistent' attribute if supported

Changeset 4324c75d2053

Parent 25e7fa1f1ef4

by Steve Borho

Changes to one file · Browse files at 4324c75d2053 Showing diff from parent 25e7fa1f1ef4 Diff from another changeset...

Change 1 of 1 Show Entire File hggtk/​status.py Stacked
 
244
245
246
247
 
 
 
 
 
 
248
249
250
 
244
245
246
 
247
248
249
250
251
252
253
254
255
@@ -244,7 +244,12 @@
  # show file selection checkboxes only when applicable   col0 = gtk.TreeViewColumn('', toggle_cell)   col0.add_attribute(toggle_cell, 'active', FM_CHECKED) - col0.add_attribute(toggle_cell, 'radio', FM_PARTIAL_SELECTED) + if gtk.pygtk_version >= (2, 12, 0): + col0.add_attribute(toggle_cell, 'inconsistent', + FM_PARTIAL_SELECTED) + else: + col0.add_attribute(toggle_cell, 'radio', + FM_PARTIAL_SELECTED)   col0.set_resizable(False)   self.filetree.append_column(col0)   self.selcb = self.add_header_checkbox(col0, self.sel_clicked)