diff options
author | JP Rosevear <jpr@ximian.com> | 2002-09-05 02:12:28 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2002-09-05 02:12:28 +0800 |
commit | 2fe0e9f18fa879a2957e07ff43252d60c21f7b00 (patch) | |
tree | fb036eb950886d68acfa51cd8338f722373983d3 /calendar/gui/dialogs/task-editor.c | |
parent | 5c079139c0232ceed1d1164d3ec4c94cbbccd7f4 (diff) | |
download | gsoc2013-evolution-2fe0e9f18fa879a2957e07ff43252d60c21f7b00.tar.gz gsoc2013-evolution-2fe0e9f18fa879a2957e07ff43252d60c21f7b00.tar.zst gsoc2013-evolution-2fe0e9f18fa879a2957e07ff43252d60c21f7b00.zip |
bail out if we couldn't send the cancel
2002-09-04 JP Rosevear <jpr@ximian.com>
* gui/dialogs/event-editor.c (event_editor_send_comp): bail out if
we couldn't send the cancel
* gui/dialogs/task-editor.c (task_editor_send_comp): ditto
* gui/dialogs/comp-editor.c (save_comp_with_send): indicate send
status
(real_send_comp): return success/fail, only resave the component a
if we successfully sent
(comp_editor_send_comp): return success/fail
* gui/itip-utils.h: update proto
* gui/itip-utils.c (itip_send_comp): return true if we sent the
message
svn path=/trunk/; revision=17966
Diffstat (limited to 'calendar/gui/dialogs/task-editor.c')
-rw-r--r-- | calendar/gui/dialogs/task-editor.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/calendar/gui/dialogs/task-editor.c b/calendar/gui/dialogs/task-editor.c index 7a637f34f1..6261b8deda 100644 --- a/calendar/gui/dialogs/task-editor.c +++ b/calendar/gui/dialogs/task-editor.c @@ -51,7 +51,7 @@ struct _TaskEditorPrivate { static void task_editor_class_init (TaskEditorClass *class); static void task_editor_init (TaskEditor *te); static void task_editor_edit_comp (CompEditor *editor, CalComponent *comp); -static void task_editor_send_comp (CompEditor *editor, CalComponentItipMethod method); +static gboolean task_editor_send_comp (CompEditor *editor, CalComponentItipMethod method); static void task_editor_destroy (GtkObject *object); static void assign_task_cmd (GtkWidget *widget, gpointer data); @@ -275,7 +275,7 @@ task_editor_edit_comp (CompEditor *editor, CalComponent *comp) priv->updating = FALSE; } -static void +static gboolean task_editor_send_comp (CompEditor *editor, CalComponentItipMethod method) { TaskEditor *te = TASK_EDITOR (editor); @@ -292,15 +292,21 @@ task_editor_send_comp (CompEditor *editor, CalComponentItipMethod method) comp = meeting_page_get_cancel_comp (priv->meet_page); if (comp != NULL) { CalClient *client; + gboolean result; client = e_meeting_model_get_cal_client (priv->model); - itip_send_comp (CAL_COMPONENT_METHOD_CANCEL, comp, client, NULL); + result = itip_send_comp (CAL_COMPONENT_METHOD_CANCEL, comp, client, NULL); gtk_object_unref (GTK_OBJECT (comp)); + + if (!result) + return FALSE; } parent: if (parent_class->send_comp) - parent_class->send_comp (editor, method); + return parent_class->send_comp (editor, method); + + return FALSE; } /* Destroy handler for the event editor */ |