From 118025105e6930bd59b31a370facf7b221613083 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sun, 5 Nov 2006 05:20:35 +0000 Subject: [PATCH] 2006-11-04 Don Allingham * src/GrampsCfg.py: warn that chaning date format will not take effect until next start * src/DisplayState.py: remove redundant code svn: r7552 --- ChangeLog | 5 +++++ src/DisplayState.py | 3 --- src/GrampsCfg.py | 14 +++++++++++--- 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 614beb31d..a4d4830c4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-11-04 Don Allingham + * src/GrampsCfg.py: warn that chaning date format will not take + effect until next start + * src/DisplayState.py: remove redundant code + 2006-11-04 Martin Hawlisch * src/plugins/ImportGeneWeb.py: Bugfixes (convert to new api); Add support for some more geneweb features diff --git a/src/DisplayState.py b/src/DisplayState.py index 52dfc9cfb..3ff882d6b 100644 --- a/src/DisplayState.py +++ b/src/DisplayState.py @@ -159,9 +159,6 @@ class RecentDocsMenu: self.fileopen = fileopen self.state = state - menu_item = self.uimanager.get_widget('/MenuBar/FileMenu/OpenRecent') - self.uistate.set_open_recent_menu(menu_item.get_submenu()) - def load(self,item): name = item.get_path() dbtype = item.get_mime() diff --git a/src/GrampsCfg.py b/src/GrampsCfg.py index 5c8db20b1..2ac2051d6 100644 --- a/src/GrampsCfg.py +++ b/src/GrampsCfg.py @@ -433,8 +433,7 @@ class GrampsPreferences(ManagedWindow.ManagedWindow): if active >= len(formats): active = 0 obox.set_active(active) - obox.connect('changed', - lambda obj: Config.set(Config.DATE_FORMAT, obj.get_active())) + obox.connect('changed', self.date_format_changed) lwidget = BasicLabel("%s: " % _('Date format')) table.attach(lwidget, 0, 1, 0, 1, yoptions=0) @@ -446,7 +445,8 @@ class GrampsPreferences(ManagedWindow.ManagedWindow): obox.append_text(item) obox.set_active(Config.get(Config.SURNAME_GUESSING)) obox.connect('changed', - lambda obj: Config.set(Config.SURNAME_GUESSING, obj.get_active())) + lambda obj: Config.set(Config.SURNAME_GUESSING, + obj.get_active())) lwidget = BasicLabel("%s: " % _('Surname Guessing')) table.attach(lwidget, 0, 1, 1, 2, yoptions=0) @@ -478,6 +478,14 @@ class GrampsPreferences(ManagedWindow.ManagedWindow): # status bar + def date_format_changed(self, obj): + from QuestionDialog import OkDialog + + Config.set(Config.DATE_FORMAT, obj.get_active()) + OkDialog(_('Change is not immediate'), + _('Changing the data format will not take ' + 'effect until the next time GRAMPS is started.')) + def add_behavior_panel(self): table = gtk.Table(3,8) table.set_border_width(12)