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:
parent
ecbfe5bf78
commit
31683b307f
@ -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>
|
2007-01-09 Zsolt Foldvari <zfoldvar@users.sourceforge.net>
|
||||||
* src/GrampsWidget.py: set_completion_mode() added, exact_completion
|
* src/GrampsWidget.py: set_completion_mode() added, exact_completion
|
||||||
fixed, cleanup
|
fixed, cleanup
|
||||||
|
@ -70,6 +70,7 @@ class BaseSelector(ManagedWindow.ManagedWindow):
|
|||||||
window = self.glade.get_widget('select_person')
|
window = self.glade.get_widget('select_person')
|
||||||
title_label = self.glade.get_widget('title')
|
title_label = self.glade.get_widget('title')
|
||||||
self.tree = self.glade.get_widget('plist')
|
self.tree = self.glade.get_widget('plist')
|
||||||
|
self.tree.connect('row-activated', self._on_row_activated)
|
||||||
|
|
||||||
self.set_window(window,title_label,self.title)
|
self.set_window(window,title_label,self.title)
|
||||||
|
|
||||||
@ -125,6 +126,9 @@ class BaseSelector(ManagedWindow.ManagedWindow):
|
|||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
def _on_row_activated(self, treeview, path, view_col):
|
||||||
|
self.window.response(gtk.RESPONSE_OK)
|
||||||
|
|
||||||
def _local_init(self):
|
def _local_init(self):
|
||||||
# define selector-specific init routine
|
# define selector-specific init routine
|
||||||
pass
|
pass
|
||||||
|
Loading…
x
Reference in New Issue
Block a user