diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 614beb31d..a4d4830c4 100644 --- a/gramps2/ChangeLog +++ b/gramps2/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/gramps2/src/DisplayState.py b/gramps2/src/DisplayState.py index 52dfc9cfb..3ff882d6b 100644 --- a/gramps2/src/DisplayState.py +++ b/gramps2/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/gramps2/src/GrampsCfg.py b/gramps2/src/GrampsCfg.py index 5c8db20b1..2ac2051d6 100644 --- a/gramps2/src/GrampsCfg.py +++ b/gramps2/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)