2008-02-20 Benny Malengier <benny.malengier@gramps-project.org>

* src/DbManager.py: #1725, ENTER, double-click if OK button sensitive only



svn: r10077
This commit is contained in:
Benny Malengier 2008-02-20 08:13:35 +00:00
parent c3246a4e20
commit 06cddbfaf7
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,6 @@
2008-02-20 Benny Malengier <benny.malengier@gramps-project.org>
* src/DbManager.py: #1725, ENTER, double-click if OK button sensitive only
2008-02-19 Brian Matherly <brian@gramps-project.org> 2008-02-19 Brian Matherly <brian@gramps-project.org>
* src/plugins/Summary.py: * src/plugins/Summary.py:
* src/plugins/CountAncestors.py: * src/plugins/CountAncestors.py:

View File

@ -324,6 +324,7 @@ class DbManager(CLIDbManager):
to make sure that an item was selected first. to make sure that an item was selected first.
""" """
if event.type == gtk.gdk._2BUTTON_PRESS and event.button == 1: if event.type == gtk.gdk._2BUTTON_PRESS and event.button == 1:
if self.connect.get_property('sensitive'):
return self.__load_selected() return self.__load_selected()
return False return False
@ -353,6 +354,7 @@ class DbManager(CLIDbManager):
""" """
if not event.state or event.state in (gtk.gdk.MOD2_MASK,): if not event.state or event.state in (gtk.gdk.MOD2_MASK,):
if event.keyval in (_RETURN, _KP_ENTER): if event.keyval in (_RETURN, _KP_ENTER):
if self.connect.get_property('sensitive'):
return self.__load_selected() return self.__load_selected()
return False return False