aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2001-10-14 01:01:19 +0800
committerJP Rosevear <jpr@src.gnome.org>2001-10-14 01:01:19 +0800
commit8c4d603998eae718145b6b205c973996d28cdc15 (patch)
tree6f230ed9c1fad5a892b103d3d403e576eba421e9 /calendar
parentf1d5b66eff3146966fffa2a2f9a944b897c6f20f (diff)
downloadgsoc2013-evolution-8c4d603998eae718145b6b205c973996d28cdc15.tar.gz
gsoc2013-evolution-8c4d603998eae718145b6b205c973996d28cdc15.tar.zst
gsoc2013-evolution-8c4d603998eae718145b6b205c973996d28cdc15.zip
send cancellation comp if necessary
2001-10-13 JP Rosevear <jpr@ximian.com> * gui/dialogs/task-editor.c (task_editor_send_comp): send cancellation comp if necessary svn path=/trunk/; revision=13655
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog5
-rw-r--r--calendar/gui/dialogs/task-editor.c27
2 files changed, 32 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index e479fff38f..3fd1acd335 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,8 @@
+2001-10-13 JP Rosevear <jpr@ximian.com>
+
+ * gui/dialogs/task-editor.c (task_editor_send_comp): send
+ cancellation comp if necessary
+
2001-10-12 JP Rosevear <jpr@ximian.com>
* gui/dialogs/alarm-page.c: return fill_component success
diff --git a/calendar/gui/dialogs/task-editor.c b/calendar/gui/dialogs/task-editor.c
index 03c4f87a54..5db5597e65 100644
--- a/calendar/gui/dialogs/task-editor.c
+++ b/calendar/gui/dialogs/task-editor.c
@@ -53,6 +53,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 void task_editor_destroy (GtkObject *object);
static void assign_task_cmd (GtkWidget *widget, gpointer data);
@@ -121,6 +122,7 @@ task_editor_class_init (TaskEditorClass *klass)
parent_class = gtk_type_class (TYPE_COMP_EDITOR);
editor_class->edit_comp = task_editor_edit_comp;
+ editor_class->send_comp = task_editor_send_comp;
object_class->destroy = task_editor_destroy;
}
@@ -242,6 +244,31 @@ task_editor_edit_comp (CompEditor *editor, CalComponent *comp)
parent_class->edit_comp (editor, comp);
}
+static void
+task_editor_send_comp (CompEditor *editor, CalComponentItipMethod method)
+{
+ TaskEditor *te = TASK_EDITOR (editor);
+ TaskEditorPrivate *priv;
+ CalComponent *comp = NULL;
+
+ priv = te->priv;
+
+ /* Don't cancel more than once or when just publishing */
+ if (method == CAL_COMPONENT_METHOD_PUBLISH ||
+ method == CAL_COMPONENT_METHOD_CANCEL)
+ goto parent;
+
+ comp = meeting_page_get_cancel_comp (priv->meet_page);
+ if (comp != NULL) {
+ itip_send_comp (CAL_COMPONENT_METHOD_CANCEL, comp);
+ gtk_object_unref (GTK_OBJECT (comp));
+ }
+
+ parent:
+ if (parent_class->send_comp)
+ parent_class->send_comp (editor, method);
+}
+
/* Destroy handler for the event editor */
static void
task_editor_destroy (GtkObject *object)