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>
|
2008-01-13 Jerome Rapinat <romjerome@yahoo.fr>
|
||||||
* src/plugins/NarrativeWeb.py: make Filter translatable
|
* src/plugins/NarrativeWeb.py: make Filter translatable
|
||||||
0001490: Cannot translate few 'filter' labels
|
0001490: Cannot translate few 'filter' labels
|
||||||
|
@ -832,6 +832,9 @@ class PersonView(PageView.PersonNavView):
|
|||||||
except Errors.WindowActiveError:
|
except Errors.WindowActiveError:
|
||||||
pass
|
pass
|
||||||
return True
|
return True
|
||||||
|
else:
|
||||||
|
#press on a parent node
|
||||||
|
return self.expand_collapse()
|
||||||
|
|
||||||
elif event.type == gtk.gdk.BUTTON_PRESS and event.button == 3:
|
elif event.type == gtk.gdk.BUTTON_PRESS and event.button == 3:
|
||||||
|
|
||||||
@ -871,13 +874,21 @@ class PersonView(PageView.PersonNavView):
|
|||||||
self.edit(obj)
|
self.edit(obj)
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
store, paths = self.selection.get_selected_rows()
|
return self.expand_collapse()
|
||||||
if paths and len(paths[0]) == 1 :
|
return False
|
||||||
if self.tree.row_expanded(paths[0]):
|
|
||||||
self.tree.collapse_row(paths[0])
|
def expand_collapse(self):
|
||||||
else:
|
"""
|
||||||
self.tree.expand_row(paths[0], 0)
|
Expand or collapse the selected parent name node.
|
||||||
return True
|
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]):
|
||||||
|
self.tree.collapse_row(paths[0])
|
||||||
|
else:
|
||||||
|
self.tree.expand_row(paths[0], 0)
|
||||||
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def key_goto_home_person(self):
|
def key_goto_home_person(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user