/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to viz/branchwin.py

  • Committer: matkor
  • Date: 2007-08-23 10:17:40 UTC
  • mto: This revision was merged to the branch mainline in revision 265.
  • Revision ID: matkor@laptop-hp-20070823101740-s17kf9qa383wiuje
Code for "branch update" menuitem and toolbox. Typo fix

Show diffs side-by-side

added added

removed removed

Lines of Context:
172
172
                                   gobject.TYPE_PYOBJECT,
173
173
                                   str, str, str)
174
174
        self.index = {}
175
 
        self.set_title(branch.nick + " - bzrk")
176
 
        gobject.idle_add(self.populate_model, start, maxnum)
177
 
 
178
 
    def populate_model(self, start, maxnum):
179
175
        index = 0
180
 
        
 
176
 
181
177
        last_lines = []
182
178
        (self.revisions, colours, self.children, self.parent_ids,
183
 
            merge_sorted) = distances(self.branch.repository, start)
 
179
            merge_sorted) = distances(branch.repository, start)
184
180
        for (index, (revision, node, lines)) in enumerate(graph(
185
181
                self.revisions, colours, merge_sorted)):
186
182
            # FIXME: at this point we should be able to show the graph order
197
193
            last_lines = lines
198
194
            if maxnum is not None and index > maxnum:
199
195
                break
 
196
 
 
197
        self.set_title(branch.nick + " - bzrk")
200
198
        self.treeview.set_model(self.model)
201
 
        return False
202
 
    
203
 
    
 
199
 
204
200
    def _treeview_cursor_cb(self, *args):
205
201
        """Callback for when the treeview cursor changes."""
206
202
        (path, col) = self.treeview.get_cursor()