aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/cal-prefs-dialog.c
diff options
context:
space:
mode:
authorDamon Chaplin <damon@src.gnome.org>2000-11-27 07:15:35 +0800
committerDamon Chaplin <damon@src.gnome.org>2000-11-27 07:15:35 +0800
commit05e024b46af1f4552a8ee5ddfe126ce968005808 (patch)
tree19e6072594341189ebca938fdef51a5603c30537 /calendar/gui/dialogs/cal-prefs-dialog.c
parentcc432378790ce854441f9fa630448fc7733bd484 (diff)
downloadgsoc2013-evolution-05e024b46af1f4552a8ee5ddfe126ce968005808.tar.gz
gsoc2013-evolution-05e024b46af1f4552a8ee5ddfe126ce968005808.tar.zst
gsoc2013-evolution-05e024b46af1f4552a8ee5ddfe126ce968005808.zip
use config settings.
* gui/dialogs/task-editor.c (task_editor_create_date_edit): use config settings. * gui/dialogs/cal-prefs-dialog.c (cal_prefs_dialog_update_config): updated EDateEdit calls. svn path=/trunk/; revision=6673
Diffstat (limited to 'calendar/gui/dialogs/cal-prefs-dialog.c')
-rw-r--r--calendar/gui/dialogs/cal-prefs-dialog.c24
1 files changed, 8 insertions, 16 deletions
diff --git a/calendar/gui/dialogs/cal-prefs-dialog.c b/calendar/gui/dialogs/cal-prefs-dialog.c
index dd97690727..98e6da9d8a 100644
--- a/calendar/gui/dialogs/cal-prefs-dialog.c
+++ b/calendar/gui/dialogs/cal-prefs-dialog.c
@@ -421,24 +421,16 @@ cal_prefs_dialog_update_config (CalPrefsDialog *prefs)
calendar_config_set_week_start_day (week_start_day);
/* Start of Day. */
- if (e_date_edit_get_time_of_day (E_DATE_EDIT (priv->start_of_day),
- &hour, &minute)) {
- calendar_config_set_day_start_hour (hour);
- calendar_config_set_day_start_minute (minute);
- } else {
- /* FIXME: Show error dialog? */
- g_warning ("Couldn't parse start of day");
- }
+ e_date_edit_get_time_of_day (E_DATE_EDIT (priv->start_of_day),
+ &hour, &minute);
+ calendar_config_set_day_start_hour (hour);
+ calendar_config_set_day_start_minute (minute);
/* End of Day. */
- if (e_date_edit_get_time_of_day (E_DATE_EDIT (priv->end_of_day),
- &hour, &minute)) {
- calendar_config_set_day_end_hour (hour);
- calendar_config_set_day_end_minute (minute);
- } else {
- /* FIXME: Show error dialog? */
- g_warning ("Couldn't parse end of day");
- }
+ e_date_edit_get_time_of_day (E_DATE_EDIT (priv->end_of_day),
+ &hour, &minute);
+ calendar_config_set_day_end_hour (hour);
+ calendar_config_set_day_end_minute (minute);
/* 12/24 Hour Format. */
calendar_config_set_24_hour_format (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (priv->use_24_hour)));