diff options
Diffstat (limited to 'calendar/gui/dialogs/task-page.c')
-rw-r--r-- | calendar/gui/dialogs/task-page.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/calendar/gui/dialogs/task-page.c b/calendar/gui/dialogs/task-page.c index f1fd4fea1b..48128c4099 100644 --- a/calendar/gui/dialogs/task-page.c +++ b/calendar/gui/dialogs/task-page.c @@ -78,6 +78,7 @@ struct _TaskPagePrivate { gboolean updating; gboolean sendoptions_shown; + gboolean is_assignment; ESendOptionsDialog *sod; }; @@ -153,6 +154,7 @@ task_page_init (TaskPage *tpage) priv->updating = FALSE; priv->sendoptions_shown = FALSE; + priv->is_assignment = FALSE; } /* Destroy handler for the task page */ @@ -292,6 +294,14 @@ task_page_show_options (TaskPage *page) page->priv->sendoptions_shown = TRUE; } +void +task_page_set_assignment (TaskPage *page, gboolean set) +{ + g_return_if_fail (IS_TASK_PAGE (page)); + + page->priv->is_assignment = set; +} + /* fill_widgets handler for the task page */ static gboolean task_page_fill_widgets (CompEditorPage *page, ECalComponent *comp) @@ -873,7 +883,7 @@ source_changed_cb (GtkWidget *widget, ESource *source, gpointer data) comp_editor_notify_client_changed ( COMP_EDITOR (gtk_widget_get_toplevel (priv->main)), client); - if (e_cal_get_static_capability (client, CAL_STATIC_CAPABILITY_REQ_SEND_OPTIONS)) + if (e_cal_get_static_capability (client, CAL_STATIC_CAPABILITY_REQ_SEND_OPTIONS) && priv->is_assignment) task_page_show_options (tpage); else task_page_hide_options (tpage); |