diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 9bd046b43..83b1e527f 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,4 +1,5 @@ 2006-12-04 Don Allingham + * src/DataViews/_RelationView.py: fix reorder spouse sensitivity * src/GrampsDb/_ReadGedcom.py: Handle notes with the way that Legacy can produce Place/Address combinations diff --git a/gramps2/src/DataViews/_RelationView.py b/gramps2/src/DataViews/_RelationView.py index 977bebd6e..c0d28a0da 100644 --- a/gramps2/src/DataViews/_RelationView.py +++ b/gramps2/src/DataViews/_RelationView.py @@ -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)