From ee1a8c7309d9428eab6b49dd902b0bdafc18ca71 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Thu, 9 Nov 2006 04:55:51 +0000 Subject: [PATCH] * src/DataViews/_RelationView.py: add toolbar buttons, catch edit button config value change * src/GrampsCfg.py: reorder options svn: r7588 --- gramps2/ChangeLog | 4 +++- gramps2/src/DataViews/_RelationView.py | 5 +++++ gramps2/src/GrampsCfg.py | 18 +++++++++--------- 3 files changed, 17 insertions(+), 10 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index c6cf9ed86..b0e16dc6f 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,5 +1,7 @@ 2006-11-08 Don Allingham - * src/DataViews/_RelationView.py: add toolbar buttons + * src/DataViews/_RelationView.py: add toolbar buttons, catch edit + button config value change + * src/GrampsCfg.py: reorder options * src/images/Makefile.am: install new svg files * src/images/parents.svg: button for toolbar * src/images/spouse.svg: button for toolbar diff --git a/gramps2/src/DataViews/_RelationView.py b/gramps2/src/DataViews/_RelationView.py index 7e0dad7cc..e509c5b89 100644 --- a/gramps2/src/DataViews/_RelationView.py +++ b/gramps2/src/DataViews/_RelationView.py @@ -122,6 +122,8 @@ class RelationshipView(PageView.PersonNavView): self.child = None Config.client.notify_add("/apps/gramps/preferences/relation-shade", self.shade_update) + Config.client.notify_add("/apps/gramps/interface/editbutton", + self.config_update) def set_active(self): PageView.PersonNavView.set_active(self) @@ -138,6 +140,9 @@ class RelationshipView(PageView.PersonNavView): self.uistate.modify_statusbar(self.dbstate) self.redraw() + def config_update(self, client, cnxn_id, entry, data): + self.redraw() + def build_tree(self): self.redraw() diff --git a/gramps2/src/GrampsCfg.py b/gramps2/src/GrampsCfg.py index 2cda91449..4a0b089c6 100644 --- a/gramps2/src/GrampsCfg.py +++ b/gramps2/src/GrampsCfg.py @@ -494,16 +494,16 @@ class GrampsPreferences(ManagedWindow.ManagedWindow): self.add_checkbox(table, _('Automatically load last database'), 0, Config.AUTOLOAD) - self.add_checkbox(table, _('Add default source on import'), - 1, Config.DEFAULT_SOURCE) - self.add_checkbox(table, _('Enable spelling checker'), - 2, Config.SPELLCHECK) - self.add_checkbox(table, _('Display Tip of the Day'), - 3, Config.USE_TIPS) - self.add_checkbox(table, _('Use shading in Relationship View'), - 4, Config.RELATION_SHADE) self.add_checkbox(table, _('Enable database transactions'), - 5, Config.TRANSACTIONS) + 1, Config.TRANSACTIONS) + self.add_checkbox(table, _('Add default source on import'), + 2, Config.DEFAULT_SOURCE) + self.add_checkbox(table, _('Enable spelling checker'), + 3, Config.SPELLCHECK) + self.add_checkbox(table, _('Display Tip of the Day'), + 4, Config.USE_TIPS) + self.add_checkbox(table, _('Use shading in Relationship View'), + 5, Config.RELATION_SHADE) self.add_checkbox(table, _('Display edit buttons on Relationship View'), 6, Config.RELEDITBTN)