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

chunks: use shorter local var name 'dt' instead of 'difftree'

Changeset f46c3ea2f429

Parent 80b0e6d13f12

by Adrian Buehlmann

Changes to one file · Browse files at f46c3ea2f429 Showing diff from parent 80b0e6d13f12 Diff from another changeset...

 
94
95
96
97
98
 
 
99
100
101
102
103
104
 
 
 
 
 
105
106
107
 
 
108
109
110
 
125
126
127
128
 
129
130
 
131
132
133
 
94
95
96
 
 
97
98
99
 
 
 
 
 
100
101
102
103
104
105
 
 
106
107
108
109
110
 
125
126
127
 
128
129
 
130
131
132
133
@@ -94,17 +94,17 @@
  pango.FontDescription # DM_FONT   )   - difftree = gtk.TreeView(self.diffmodel) - self._difftree = difftree + dt = gtk.TreeView(self.diffmodel) + self._difftree = dt   - difftree.get_selection().set_mode(gtk.SELECTION_MULTIPLE) - difftree.set_headers_visible(False) - difftree.set_enable_search(False) - if getattr(difftree, 'enable-grid-lines', None) is not None: - difftree.set_property('enable-grid-lines', True) + dt.get_selection().set_mode(gtk.SELECTION_MULTIPLE) + dt.set_headers_visible(False) + dt.set_enable_search(False) + if getattr(dt, 'enable-grid-lines', None) is not None: + dt.set_property('enable-grid-lines', True)   - difftree.connect('row-activated', self.diff_tree_row_act) - difftree.connect('copy-clipboard', self.copy_to_clipboard) + dt.connect('row-activated', self.diff_tree_row_act) + dt.connect('copy-clipboard', self.copy_to_clipboard)     cell = gtk.CellRendererText()   diffcol = gtk.TreeViewColumn('diff', cell) @@ -125,9 +125,9 @@
  cell.set_property('foreground', gtklib.STATUS_REJECT_FOREGROUND)   diffcol.add_attribute(cell, 'background-set', DM_REJECTED)   diffcol.add_attribute(cell, 'foreground-set', DM_REJECTED) - difftree.append_column(diffcol) + dt.append_column(diffcol)   - return difftree + return dt     def __getitem__(self, wfile):   return self.filechunks[wfile]