Mesh search field should autofocus, #4777

This commit is contained in:
Reinier Heeres 2007-11-20 14:06:18 +01:00
parent 7211a62c5c
commit d859b95070
2 changed files with 3 additions and 0 deletions

View File

@ -135,6 +135,7 @@ class HomeWindow(gtk.Window):
self._canvas.set_root(self._friends_box) self._canvas.set_root(self._friends_box)
elif self._level == ShellModel.ZOOM_MESH: elif self._level == ShellModel.ZOOM_MESH:
self._canvas.set_root(self._mesh_box) self._canvas.set_root(self._mesh_box)
self._mesh_box.focus_search_entry()
def get_home_box(self): def get_home_box(self):
return self._home_box return self._home_box

View File

@ -563,3 +563,5 @@ class MeshBox(hippo.CanvasBox):
if hasattr(icon, 'set_filter'): if hasattr(icon, 'set_filter'):
icon.set_filter(self._query) icon.set_filter(self._query)
def focus_search_entry(self):
self._toolbar._search_entry.grab_focus()