/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: Gary van der Merwe
  • Date: 2007-08-24 11:48:03 UTC
  • mto: This revision was merged to the branch mainline in revision 266.
  • Revision ID: garyvdm@gmail.com-20070824114803-3v5pu943xg2idrre
Show bzr viz interface quickly.

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