2007-01-10 Zsolt Foldvari <zfoldvar@users.sourceforge.net>

* src/Selectors/_BaseSelector.py (__init__, _on_row_activated):
	enable selection by Double-click or Enter



svn: r7888
This commit is contained in:
Zsolt Foldvari 2007-01-09 23:05:29 +00:00
parent cf9345e28a
commit 781f50f78f
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2007-01-10 Zsolt Foldvari <zfoldvar@users.sourceforge.net>
* src/Selectors/_BaseSelector.py (__init__, _on_row_activated):
enable selection by Double-click or Enter
2007-01-09 Zsolt Foldvari <zfoldvar@users.sourceforge.net>
* src/GrampsWidget.py: set_completion_mode() added, exact_completion
fixed, cleanup

View File

@ -70,6 +70,7 @@ class BaseSelector(ManagedWindow.ManagedWindow):
window = self.glade.get_widget('select_person')
title_label = self.glade.get_widget('title')
self.tree = self.glade.get_widget('plist')
self.tree.connect('row-activated', self._on_row_activated)
self.set_window(window,title_label,self.title)
@ -125,6 +126,9 @@ class BaseSelector(ManagedWindow.ManagedWindow):
else:
return None
def _on_row_activated(self, treeview, path, view_col):
self.window.response(gtk.RESPONSE_OK)
def _local_init(self):
# define selector-specific init routine
pass