diff --git a/src/GrampsCfg.py b/src/GrampsCfg.py index bd9ca0903..f3cf29b19 100644 --- a/src/GrampsCfg.py +++ b/src/GrampsCfg.py @@ -685,21 +685,6 @@ class GrampsPreferences(ManagedWindow.ManagedWindow): table.attach(lwidget, 0, 1, row, row+1, yoptions=0) table.attach(obox, 1, 3, row, row+1, yoptions=0) row += 1 - - # Date format on reports: - obox = gtk.combo_box_new_text() - formats = DateHandler.get_date_formats() - for item in formats: - obox.append_text(item) - active = config.get('preferences.date-format-report') - if active >= len(formats): - active = 0 - obox.set_active(active) - obox.connect('changed', self.date_format_report_changed) - lwidget = BasicLabel("%s: " % _('Date format on reports')) - table.attach(lwidget, 0, 1, row, row+1, yoptions=0) - table.attach(obox, 1, 3, row, row+1, yoptions=0) - row += 1 # Calendar format on report: obox = gtk.combo_box_new_text() @@ -797,11 +782,10 @@ class GrampsPreferences(ManagedWindow.ManagedWindow): def date_calendar_changed(self, obj): config.set('preferences.calendar-format-report', obj.get_active()) + OkDialog(_('Change is not immediate'), + _('Changing the data format will not take ' + 'effect until the next time Gramps is started.')) - def date_format_report_changed(self, obj): - - config.set('preferences.date-format-report', obj.get_active()) - def add_date_panel(self): table = gtk.Table(2, 7) table.set_border_width(12) diff --git a/src/config.py b/src/config.py index 047419ef1..3a3ff2541 100644 --- a/src/config.py +++ b/src/config.py @@ -254,7 +254,6 @@ register('paths.website-directory', const.USER_HOME) register('preferences.complete-color', '#008b00') register('preferences.custom-marker-color', '#8b008b') register('preferences.date-format', 0) -register('preferences.date-format-report', 0) register('preferences.calendar-format-report', 0) register('preferences.default-source', False) register('preferences.eprefix', 'E%04d')