From 53dd5f199f5e15f16c632606e616e51be886f345 Mon Sep 17 00:00:00 2001 From: Gert Michael Kulyk Date: Thu, 20 May 2010 21:16:19 +0200 Subject: Bug #616889 - Force 24h format for locales not supporting 12h format --- calendar/gui/dialogs/cal-prefs-dialog.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'calendar') diff --git a/calendar/gui/dialogs/cal-prefs-dialog.c b/calendar/gui/dialogs/cal-prefs-dialog.c index 5baf22306c..35b946137f 100644 --- a/calendar/gui/dialogs/cal-prefs-dialog.c +++ b/calendar/gui/dialogs/cal-prefs-dialog.c @@ -599,6 +599,11 @@ calendar_prefs_dialog_construct (CalendarPrefsDialog *prefs, locale_supports_12_hour_format = calendar_config_locale_supports_12_hour_format (); + /* Force 24 hour format for locales which don't support 12 hour format */ + if (!locale_supports_12_hour_format + && !e_shell_settings_get_boolean (shell_settings, "cal-use-24-hour-format")) + e_shell_settings_set_boolean (shell_settings, "cal-use-24-hour-format", TRUE); + /* Make sure our custom widget classes are registered with * GType before we load the GtkBuilder definition file. */ E_TYPE_DATE_EDIT; -- cgit v1.2.3