/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 branchwin.py

  • Committer: Wouter van Heyst
  • Date: 2006-05-14 18:38:24 UTC
  • Revision ID: larstiq@larstiq.dyndns.org-20060514183824-6e58a135dbc52110
show diff on row activation, LP# 44591

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
        self.treeview.set_rules_hint(True)
78
78
        self.treeview.set_search_column(4)
79
79
        self.treeview.connect("cursor-changed", self._treeview_cursor_cb)
 
80
        self.treeview.connect("row-activated", self._treeview_clicked_cb)
80
81
        scrollwin.add(self.treeview)
81
82
        self.treeview.show()
82
83
 
416
417
        if self.app is not None:
417
418
            self.app.show_diff(self.branch, revid, parentid)
418
419
        self.treeview.grab_focus()
 
420
 
 
421
    def _treeview_clicked_cb(self, widget, path, col):
 
422
        # TODO: more than one parent
 
423
        """Callback for when the treeview is double-clicked"""
 
424
        revision = self.model[path][0]
 
425
        parent_id = self.parent_ids[revision][0]
 
426
        if self.app is not None:
 
427
            self.app.show_diff(self.branch, revision.revision_id, parent_id)
 
428
        self.treeview.grab_focus()