2008-01-17 Benny Malengier <benny.malengier@gramps-project.org>
* src/DataViews/PersonView.py: issue 1451, double click to expand nodes svn: r9861
This commit is contained in:
parent
d8852c6efe
commit
c6bfc584f1
@ -1,3 +1,6 @@
|
||||
2008-01-17 Benny Malengier <benny.malengier@gramps-project.org>
|
||||
* src/DataViews/PersonView.py: issue 1451, double click to expand nodes
|
||||
|
||||
2008-01-13 Jerome Rapinat <romjerome@yahoo.fr>
|
||||
* src/plugins/NarrativeWeb.py: make Filter translatable
|
||||
0001490: Cannot translate few 'filter' labels
|
||||
|
@ -832,6 +832,9 @@ class PersonView(PageView.PersonNavView):
|
||||
except Errors.WindowActiveError:
|
||||
pass
|
||||
return True
|
||||
else:
|
||||
#press on a parent node
|
||||
return self.expand_collapse()
|
||||
|
||||
elif event.type == gtk.gdk.BUTTON_PRESS and event.button == 3:
|
||||
|
||||
@ -871,6 +874,14 @@ class PersonView(PageView.PersonNavView):
|
||||
self.edit(obj)
|
||||
return True
|
||||
else:
|
||||
return self.expand_collapse()
|
||||
return False
|
||||
|
||||
def expand_collapse(self):
|
||||
"""
|
||||
Expand or collapse the selected parent name node.
|
||||
Return True if change done, False otherwise
|
||||
"""
|
||||
store, paths = self.selection.get_selected_rows()
|
||||
if paths and len(paths[0]) == 1 :
|
||||
if self.tree.row_expanded(paths[0]):
|
||||
|
Loading…
Reference in New Issue
Block a user