[Pkg-bazaar-commits] ./bzr-gtk/unstable r13: Keep the focus on the treeview

Scott James Remnant scott at netsplit.com
Fri Apr 10 07:15:18 UTC 2009


------------------------------------------------------------
revno: 13
committer: Scott James Remnant <scott at netsplit.com>
timestamp: Mon 2005-10-17 09:23:30 +0100
message:
  Keep the focus on the treeview
modified:
  branchwin.py
-------------- next part --------------
=== modified file 'branchwin.py'
--- a/branchwin.py	2005-10-17 07:55:01 +0000
+++ b/branchwin.py	2005-10-17 08:23:30 +0000
@@ -344,6 +344,7 @@
         else:
             next = self.revisions[revision.parent_ids[0]]
             self.treeview.set_cursor(self.index[next])
+        self.treeview.grab_focus()
 
     def _fwd_clicked_cb(self, *args):
         """Callback for when the forward button is clicked."""
@@ -359,12 +360,15 @@
         else:
             prev = list(self.children[revision])[0]
             self.treeview.set_cursor(self.index[prev])
+        self.treeview.grab_focus()
 
     def _go_clicked_cb(self, widget, revid):
         """Callback for when the go button for a parent is clicked."""
         self.treeview.set_cursor(self.index[self.revisions[revid]])
+        self.treeview.grab_focus()
 
     def _show_clicked_cb(self, widget, revid, parentid):
         """Callback for when the show button for a parent is clicked."""
         if self.app is not None:
             self.app.show_diff(self.branch, revid, parentid)
+        self.treeview.grab_focus()



More information about the Pkg-bazaar-commits mailing list