Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.1, 1.1.1, and 1.1.2

thgpbranch: Rename column prefixes from PB_ to C_ to make usage more clear

Changeset eff49c47d228

Parent e2217b34d6e0

by Peer Sommerlund

Changes to one file · Browse files at eff49c47d228 Showing diff from parent e2217b34d6e0 Diff from another changeset...

 
22
23
24
25
26
 
 
27
28
29
 
152
153
154
155
 
156
157
158
159
160
161
 
162
163
164
 
464
465
466
467
468
 
 
469
470
471
472
473
 
474
475
476
 
494
495
496
497
 
498
499
 
500
501
502
 
22
23
24
 
 
25
26
27
28
29
 
152
153
154
 
155
156
157
158
159
160
 
161
162
163
164
 
464
465
466
 
 
467
468
469
470
471
472
 
473
474
475
476
 
494
495
496
 
497
498
 
499
500
501
502
@@ -22,8 +22,8 @@
 M_NAME = 3    # Patch Branch column enumeration -PB_GRAPH = 0 -PB_NAME = 1 +C_GRAPH = 0 +C_NAME = 1    class PBranchWidget(gtk.VBox):   @@ -152,13 +152,13 @@
    #### patch list columns and cell renderers   - addcol(_('Graph'), PB_GRAPH, resizable=True, + addcol(_('Graph'), C_GRAPH, resizable=True,   cell_renderer=graphcell.CellRendererGraph(),   properties=[("node", M_NODE),   ("in-lines",M_IN_LINES),   ("out-lines", M_OUT_LINES)]   ) - addcol(_('Name'), PB_NAME, M_NAME, editfunc=cell_edited) + addcol(_('Name'), C_NAME, M_NAME, editfunc=cell_edited)     pane.add(self.list)   @@ -464,13 +464,13 @@
    self.vmenu = {}   - colappend(_('Show graph'), PB_GRAPH) - colappend(_('Show name'), PB_NAME) + colappend(_('Show graph'), C_GRAPH) + colappend(_('Show name'), C_NAME)     append(sep=True)     def enable_editable(item): - self.cells[PB_NAME].set_property('editable', item.get_active()) + self.cells[C_NAME].set_property('editable', item.get_active())   item = append(_('Enable editable cells'), enable_editable,   check=True, active=False)   self.vmenu['editable-cell'] = item @@ -494,9 +494,9 @@
  raise AttributeError, 'unknown property %s' % property.name     def col_to_prop(self, col_idx): - if col_idx == PB_GRAPH: + if col_idx == C_GRAPH:   return 'graph-column-visible' - if col_idx == PB_NAME: + if col_idx == C_NAME:   return 'name-column-visible'   return ''