/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: Scott James Remnant
  • Date: 2005-10-17 08:23:30 UTC
  • Revision ID: scott@netsplit.com-20051017082330-e1fde851220334cf
Keep the focus on the treeview

Show diffs side-by-side

added added

removed removed

Lines of Context:
344
344
        else:
345
345
            next = self.revisions[revision.parent_ids[0]]
346
346
            self.treeview.set_cursor(self.index[next])
 
347
        self.treeview.grab_focus()
347
348
 
348
349
    def _fwd_clicked_cb(self, *args):
349
350
        """Callback for when the forward button is clicked."""
359
360
        else:
360
361
            prev = list(self.children[revision])[0]
361
362
            self.treeview.set_cursor(self.index[prev])
 
363
        self.treeview.grab_focus()
362
364
 
363
365
    def _go_clicked_cb(self, widget, revid):
364
366
        """Callback for when the go button for a parent is clicked."""
365
367
        self.treeview.set_cursor(self.index[self.revisions[revid]])
 
368
        self.treeview.grab_focus()
366
369
 
367
370
    def _show_clicked_cb(self, widget, revid, parentid):
368
371
        """Callback for when the show button for a parent is clicked."""
369
372
        if self.app is not None:
370
373
            self.app.show_diff(self.branch, revid, parentid)
 
374
        self.treeview.grab_focus()