2008-02-24 Gary Burton <gary.burton@zen.co.uk>

* src/Selectors/_SelectPerson.py: Let return key close search field.
	Bug #1728

2008-02-24 Gary Burton <gary.burton@zen.co.uk>


svn: r10109
This commit is contained in:
Gary Burton
2008-02-24 21:18:49 +00:00
parent 20426f36e3
commit ece26c420f
2 changed files with 8 additions and 5 deletions

View File

@ -184,10 +184,9 @@ class SelectPerson(ManagedWindow.ManagedWindow):
else:
self.plist.expand_row(paths[0], 0)
return True
else:
self.window.response(gtk.RESPONSE_OK)
return True
return False
def _on_row_activated(self, treeview, path, view_col):
self.window.response(gtk.RESPONSE_OK)
store, paths = self.selection.get_selected_rows()
if paths and len(paths[0]) == 2 :
self.window.response(gtk.RESPONSE_OK)