remove unneeded option (tracker 3452 2385 2371 3473)
svn: r13924
This commit is contained in:
parent
68224a98c0
commit
d06feb67ca
@ -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)
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user