2007-02-04 Don Allingham <don@gramps-project.org>

* src/DataViews/_RelationView.py: default Relationship buttons to insenstive.
	Setting an active person will reenable them.



svn: r8053
This commit is contained in:
Don Allingham 2007-02-04 21:30:45 +00:00
parent 444a17d41e
commit 5f40a3e48b
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2007-02-04 Don Allingham <don@gramps-project.org>
* src/DataViews/_RelationView.py: default Relationship buttons to insenstive.
Setting an active person will reenable them.
2007-02-03 Brian Matherly <brian@gramps-project.org>
* src/plugins/NarrativeWeb.py: fix 0000894: syntax error on Narrative web plugin

View File

@ -333,6 +333,7 @@ class RelationshipView(PageView.PersonNavView):
self.show_siblings)
self.order_action.set_sensitive(self.reorder_sensitive)
self.family_action.set_sensitive(False)
def siblings_toggle(self, obj):
self.show_siblings = obj.get_active()
@ -1010,6 +1011,8 @@ class RelationshipView(PageView.PersonNavView):
from Editors import EditFamily
family = RelLib.Family()
person = self.dbstate.active
if not person:
return
if person.gender == RelLib.Person.MALE:
family.set_father_handle(person.handle)