aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/task-editor.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/task-editor.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/task-editor.c')
-rw-r--r--calendar/gui/dialogs/task-editor.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/calendar/gui/dialogs/task-editor.c b/calendar/gui/dialogs/task-editor.c
index f26bae2e09..61767b4fd1 100644
--- a/calendar/gui/dialogs/task-editor.c
+++ b/calendar/gui/dialogs/task-editor.c
@@ -36,6 +36,7 @@
#include <cal-util/timeutil.h>
#include <cal-client/cal-client.h>
#include "task-editor.h"
+#include "../calendar-config.h"
typedef struct {
@@ -326,7 +327,7 @@ task_editor_create_date_edit (void)
dedit = e_date_edit_new ();
/* FIXME: Set other options. */
- e_date_edit_set_time_popup_range (E_DATE_EDIT (dedit), 8, 18);
+ e_date_edit_set_time_popup_range (E_DATE_EDIT (dedit), calendar_config_get_day_start_hour (), calendar_config_get_day_end_hour ());
e_date_edit_set_allow_no_date_set (E_DATE_EDIT (dedit), TRUE);
return dedit;
}
@@ -1094,8 +1095,8 @@ completed_changed (EDateEdit *dedit,
if (priv->ignore_callbacks)
return;
- t = e_date_edit_get_time (E_DATE_EDIT (priv->completed_date));
priv->ignore_callbacks = TRUE;
+ t = e_date_edit_get_time (E_DATE_EDIT (priv->completed_date));
if (t == -1) {
/* If the 'Completed Date' is set to 'None', we set the
status to 'Not Started' and the percent-complete to 0.