aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGert Michael Kulyk <gkulyk@yahoo.de>2010-05-21 03:11:45 +0800
committerMilan Crha <mcrha@redhat.com>2010-05-21 03:11:45 +0800
commit077c5ca3abc299f41c74d48958477fa574d1824c (patch)
tree7c74465b3a563315514dc0b9fb37835902bf1cea
parent1d4c54eb68c4f5e381f1e0695b561a1374ba4ec4 (diff)
downloadgsoc2013-evolution-077c5ca3abc299f41c74d48958477fa574d1824c.tar.gz
gsoc2013-evolution-077c5ca3abc299f41c74d48958477fa574d1824c.tar.zst
gsoc2013-evolution-077c5ca3abc299f41c74d48958477fa574d1824c.zip
Bug #616889 - Force 24h format for locales not supporting 12h format
-rw-r--r--calendar/gui/dialogs/cal-prefs-dialog.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/calendar/gui/dialogs/cal-prefs-dialog.c b/calendar/gui/dialogs/cal-prefs-dialog.c
index 6d204e642b..559d5f879d 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;