diff options
Diffstat (limited to 'calendar/gui/dialogs/send-comp.c')
-rw-r--r-- | calendar/gui/dialogs/send-comp.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/calendar/gui/dialogs/send-comp.c b/calendar/gui/dialogs/send-comp.c index 882368a4d6..bc5ce3a35e 100644 --- a/calendar/gui/dialogs/send-comp.c +++ b/calendar/gui/dialogs/send-comp.c @@ -73,3 +73,34 @@ send_component_dialog (GtkWindow *parent, ECal *client, ECalComponent *comp, gbo else return FALSE; } + +gboolean +send_component_prompt_subject (GtkWindow *parent, ECal *client, ECalComponent *comp) +{ + ECalComponentVType vtype; + const char *id; + + vtype = e_cal_component_get_vtype (comp); + + switch (vtype) { + case E_CAL_COMPONENT_EVENT: + id = "calendar:prompt-send-no-subject-calendar"; + break; + + case E_CAL_COMPONENT_TODO: + id = "calendar:prompt-send-no-subject-task"; + break; + + default: + g_message ("send_component_prompt_subject(): " + "Cannot handle object of type %d", vtype); + return FALSE; + } + + if (e_error_run (parent, id, NULL) == GTK_RESPONSE_YES) + return TRUE; + else + return FALSE; +} + + |