aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/task-editor.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/dialogs/task-editor.c
parent4dddf579f7e114957c38a8df0903c1476e79c267 (diff)
downloadgsoc2013-evolution-d097ac6883dab98ffe326299f7293062573433f8.tar
gsoc2013-evolution-d097ac6883dab98ffe326299f7293062573433f8.tar.gz
gsoc2013-evolution-d097ac6883dab98ffe326299f7293062573433f8.tar.bz2
gsoc2013-evolution-d097ac6883dab98ffe326299f7293062573433f8.tar.lz
gsoc2013-evolution-d097ac6883dab98ffe326299f7293062573433f8.tar.xz
gsoc2013-evolution-d097ac6883dab98ffe326299f7293062573433f8.tar.zst
gsoc2013-evolution-d097ac6883dab98ffe326299f7293062573433f8.zip
Fixes #317014
svn path=/trunk/; revision=30418
Diffstat (limited to 'calendar/gui/dialogs/task-editor.c')
-rw-r--r--calendar/gui/dialogs/task-editor.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/calendar/gui/dialogs/task-editor.c b/calendar/gui/dialogs/task-editor.c
index 4a393f6bf8..85ddbabbc4 100644
--- a/calendar/gui/dialogs/task-editor.c
+++ b/calendar/gui/dialogs/task-editor.c
@@ -122,14 +122,13 @@ task_editor_init (TaskEditor *te)
}
TaskEditor *
-task_editor_construct (TaskEditor *te, ECal *client, gboolean is_assigned)
+task_editor_construct (TaskEditor *te, ECal *client)
{
TaskEditorPrivate *priv;
gboolean read_only = FALSE;
priv = te->priv;
- priv->is_assigned = is_assigned;
priv->task_page = task_page_new ();
g_object_ref (priv->task_page);
gtk_object_sink (GTK_OBJECT (priv->task_page));
@@ -356,12 +355,15 @@ task_editor_finalize (GObject *object)
* editor could not be created.
**/
TaskEditor *
-task_editor_new (ECal *client, gboolean is_assigned)
+task_editor_new (ECal *client, CompEditorFlags flags)
{
TaskEditor *te;
te = g_object_new (TYPE_TASK_EDITOR, NULL);
- return task_editor_construct (te, client, is_assigned);
+ te->priv->is_assigned = flags & COMP_EDITOR_IS_ASSIGNED;
+ comp_editor_set_flags (COMP_EDITOR (te), flags);
+
+ return task_editor_construct (te, client);
}
static void