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:
parent
c3246a4e20
commit
06cddbfaf7
@ -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>
|
||||
* src/plugins/Summary.py:
|
||||
* src/plugins/CountAncestors.py:
|
||||
|
@ -324,6 +324,7 @@ class DbManager(CLIDbManager):
|
||||
to make sure that an item was selected first.
|
||||
"""
|
||||
if event.type == gtk.gdk._2BUTTON_PRESS and event.button == 1:
|
||||
if self.connect.get_property('sensitive'):
|
||||
return self.__load_selected()
|
||||
return False
|
||||
|
||||
@ -353,6 +354,7 @@ class DbManager(CLIDbManager):
|
||||
"""
|
||||
if not event.state or event.state in (gtk.gdk.MOD2_MASK,):
|
||||
if event.keyval in (_RETURN, _KP_ENTER):
|
||||
if self.connect.get_property('sensitive'):
|
||||
return self.__load_selected()
|
||||
return False
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user