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

chunks: rename get_difftree() to difftree()

and allow to call it more than once

Changeset 829d623c98dc

Parent 50afe89f384f

by Adrian Buehlmann

Changes to 2 files · Browse files at 829d623c98dc Showing diff from parent 50afe89f384f Diff from another changeset...

 
79
80
81
 
82
 
 
 
83
84
85
86
87
 
92
93
94
 
95
96
97
98
99
100
101
102
103
104
 
79
80
81
82
83
84
85
86
87
 
88
89
90
 
95
96
97
98
99
100
101
102
103
104
 
105
106
107
@@ -79,9 +79,12 @@
  self.stat = stat   self.filechunks = {}   self.diffmodelfile = None + self._difftree = None   + def difftree(self): + if self._difftree != None: + return self._difftree   - def get_difftree(self):   self.diffmodel = gtk.ListStore(   bool, # DM_REJECTED   str, # DM_DISP_TEXT @@ -92,13 +95,13 @@
  )     difftree = gtk.TreeView(self.diffmodel) + self._difftree = difftree     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) - self.difftree = difftree     difftree.connect('row-activated', self.diff_tree_row_act)  
 
355
356
357
358
 
359
360
361
 
355
356
357
 
358
359
360
361
@@ -355,7 +355,7 @@
  self.clipboard = gtk.Clipboard()     self.chunks = chunks.chunks(self) - difftree = self.chunks.get_difftree() + difftree = self.chunks.difftree()   self.difftree = difftree     scroller = gtk.ScrolledWindow()