diff options
Diffstat (limited to 'calendar/gui/dialogs/cal-prefs-dialog.c')
-rw-r--r-- | calendar/gui/dialogs/cal-prefs-dialog.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/calendar/gui/dialogs/cal-prefs-dialog.c b/calendar/gui/dialogs/cal-prefs-dialog.c index 0b1d14d55e..0b3d43e98b 100644 --- a/calendar/gui/dialogs/cal-prefs-dialog.c +++ b/calendar/gui/dialogs/cal-prefs-dialog.c @@ -483,6 +483,7 @@ cal_prefs_dialog_show_config (CalPrefsDialog *prefs) gint mask, day, week_start_day, time_divisions; char *zone_name; icaltimezone *zone; + gboolean sensitive; priv = prefs->priv; @@ -521,6 +522,11 @@ cal_prefs_dialog_show_config (CalPrefsDialog *prefs) else gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (priv->use_12_hour), TRUE); + sensitive = calendar_config_locale_supports_12_hour_format (); + gtk_widget_set_sensitive (priv->use_12_hour, sensitive); + gtk_widget_set_sensitive (priv->use_24_hour, sensitive); + + /* Time Divisions. */ time_divisions = calendar_config_get_time_divisions (); e_dialog_option_menu_set (priv->time_divisions, time_divisions, |