* src/DataViews/_RelationView.py: fix reorder spouse sensitivity

svn: r7760
This commit is contained in:
Don Allingham 2006-12-04 23:53:19 +00:00
parent 72fb9b97ca
commit 9cc8496be4
2 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,5 @@
2006-12-04 Don Allingham <don@gramps-project.org>
* src/DataViews/_RelationView.py: fix reorder spouse sensitivity
* src/GrampsDb/_ReadGedcom.py: Handle notes with the way that
Legacy can produce Place/Address combinations

View File

@ -125,6 +125,7 @@ class RelationshipView(PageView.PersonNavView):
self.config_update)
Config.client.notify_add("/apps/gramps/interface/toolbar-on",
self.shade_update)
self.reorder_sensitive = False
def set_active(self):
PageView.PersonNavView.set_active(self)
@ -321,6 +322,8 @@ class RelationshipView(PageView.PersonNavView):
None, None, self.siblings_toggle,
self.show_siblings)
self.order_action.set_sensitive(self.reorder_sensitive)
def siblings_toggle(self, obj):
self.show_siblings = obj.get_active()
self.change_person(self.dbstate.active.handle)
@ -638,7 +641,8 @@ class RelationshipView(PageView.PersonNavView):
if not self.toolbar_visible:
# Show edit-Buttons if toolbar is not visible
if self.reorder_sensitive:
add = GrampsWidgets.IconButton(self.reorder, None, gtk.STOCK_SORT_ASCENDING)
add = GrampsWidgets.IconButton(self.reorder, None,
gtk.STOCK_SORT_ASCENDING)
self.tooltips.set_tip(add, _('Reorder families'))
hbox.pack_start(add, False)