aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-tasks.c
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchen@src.gnome.org>2005-09-29 21:02:56 +0800
committerChenthill Palanisamy <pchen@src.gnome.org>2005-09-29 21:02:56 +0800
commitd097ac6883dab98ffe326299f7293062573433f8 (patch)
treedec701b00faadb4b2f2aeeb1232561717a5a96ce /calendar/gui/e-tasks.c
parent4dddf579f7e114957c38a8df0903c1476e79c267 (diff)
downloadgsoc2013-evolution-d097ac6883dab98ffe326299f7293062573433f8.tar.gz
gsoc2013-evolution-d097ac6883dab98ffe326299f7293062573433f8.tar.zst
gsoc2013-evolution-d097ac6883dab98ffe326299f7293062573433f8.zip
Fixes #317014
svn path=/trunk/; revision=30418
Diffstat (limited to 'calendar/gui/e-tasks.c')
-rw-r--r--calendar/gui/e-tasks.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/calendar/gui/e-tasks.c b/calendar/gui/e-tasks.c
index 98b86d929f..dc6401d330 100644
--- a/calendar/gui/e-tasks.c
+++ b/calendar/gui/e-tasks.c
@@ -952,6 +952,7 @@ e_tasks_new_task (ETasks *tasks)
ECalComponent *comp;
const char *category;
ECal *ecal;
+ guint32 flags = 0;
g_return_if_fail (E_IS_TASKS (tasks));
@@ -962,12 +963,14 @@ e_tasks_new_task (ETasks *tasks)
if (!ecal)
return;
+ flags |= COMP_EDITOR_NEW_ITEM | COMP_EDITOR_USER_ORG;
+
comp = cal_comp_task_new_with_defaults (ecal);
category = cal_search_bar_get_category (CAL_SEARCH_BAR (priv->search_bar));
e_cal_component_set_categories (comp, category);
- tedit = task_editor_new (ecal, FALSE);
+ tedit = task_editor_new (ecal, flags);
comp_editor_edit_comp (COMP_EDITOR (tedit), comp);
g_object_unref (comp);