* src/DataViews/_RelationView.py: fix reorder spouse sensitivity
svn: r7760
This commit is contained in:
parent
72fb9b97ca
commit
9cc8496be4
@ -1,4 +1,5 @@
|
|||||||
2006-12-04 Don Allingham <don@gramps-project.org>
|
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
|
* src/GrampsDb/_ReadGedcom.py: Handle notes with the way that
|
||||||
Legacy can produce Place/Address combinations
|
Legacy can produce Place/Address combinations
|
||||||
|
|
||||||
|
@ -125,6 +125,7 @@ class RelationshipView(PageView.PersonNavView):
|
|||||||
self.config_update)
|
self.config_update)
|
||||||
Config.client.notify_add("/apps/gramps/interface/toolbar-on",
|
Config.client.notify_add("/apps/gramps/interface/toolbar-on",
|
||||||
self.shade_update)
|
self.shade_update)
|
||||||
|
self.reorder_sensitive = False
|
||||||
|
|
||||||
def set_active(self):
|
def set_active(self):
|
||||||
PageView.PersonNavView.set_active(self)
|
PageView.PersonNavView.set_active(self)
|
||||||
@ -321,6 +322,8 @@ class RelationshipView(PageView.PersonNavView):
|
|||||||
None, None, self.siblings_toggle,
|
None, None, self.siblings_toggle,
|
||||||
self.show_siblings)
|
self.show_siblings)
|
||||||
|
|
||||||
|
self.order_action.set_sensitive(self.reorder_sensitive)
|
||||||
|
|
||||||
def siblings_toggle(self, obj):
|
def siblings_toggle(self, obj):
|
||||||
self.show_siblings = obj.get_active()
|
self.show_siblings = obj.get_active()
|
||||||
self.change_person(self.dbstate.active.handle)
|
self.change_person(self.dbstate.active.handle)
|
||||||
@ -638,7 +641,8 @@ class RelationshipView(PageView.PersonNavView):
|
|||||||
if not self.toolbar_visible:
|
if not self.toolbar_visible:
|
||||||
# Show edit-Buttons if toolbar is not visible
|
# Show edit-Buttons if toolbar is not visible
|
||||||
if self.reorder_sensitive:
|
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'))
|
self.tooltips.set_tip(add, _('Reorder families'))
|
||||||
hbox.pack_start(add, False)
|
hbox.pack_start(add, False)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user