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

  • Committer: Aaron Bentley
  • Date: 2006-06-19 16:04:41 UTC
  • mto: This revision was merged to the branch mainline in revision 62.
  • Revision ID: abentley@panoramicfeedback.com-20060619160441-b0dd213a9ff31e2d
Gannotate-launched diffs now jump to correct file

Show diffs side-by-side

added added

removed removed

Lines of Context:
136
136
        self.treeview.expand_all()
137
137
        self.set_title(description + " - bzrk diff")
138
138
 
 
139
    def set_file(self, file_path):
 
140
        tv_path = None
 
141
        for data in self.model:
 
142
            for child in data.iterchildren():
 
143
                if child[0] == file_path:
 
144
                    tv_path = child.path
 
145
                    break
 
146
        assert tv_path is not None
 
147
        self.treeview.set_cursor(tv_path)
 
148
 
139
149
    def _treeview_cursor_cb(self, *args):
140
150
        """Callback for when the treeview cursor changes."""
141
151
        (path, col) = self.treeview.get_cursor()