/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-10-01 08:19:05 UTC
  • mto: This revision was merged to the branch mainline in revision 290.
  • Revision ID: garyvdm@gmail.com-20071001081905-rg0oyum2i5ep5wap
Fix vizchanges regression: Dbl click on a revision was not bringing up
the diff window.

Show diffs side-by-side

added added

removed removed

Lines of Context:
314
314
    def _treeview_row_activated_cb(self, widget, path, col):
315
315
        # TODO: more than one parent
316
316
        """Callback for when a treeview row gets activated."""
317
 
        revision = self.selected_revision(path)
318
 
        if len(self.parent_ids[revision]) == 0:
 
317
        revision_id = self.model[path][treemodel.REVID]
 
318
        parents = self.model[path][treemodel.PARENTS]
 
319
        if len(parents) == 0:
319
320
            # Ignore revisions without parent
320
321
            return
321
 
        parent_id = self.parent_ids[revision][0]
322
 
        self.show_diff(self.branch, revision.revision_id, parent_id)
 
322
        parent_id = parents[0]
 
323
        self.show_diff(self.branch, revision_id, parent_id)
323
324
        self.treeview.grab_focus()