From 8757f8253d34267c81067d8b50b9d8a0b17bd32b Mon Sep 17 00:00:00 2001 From: Chenthill Palanisamy Date: Thu, 15 Dec 2005 08:33:31 +0000 Subject: fixes #324058 svn path=/trunk/; revision=30782 --- calendar/gui/dialogs/comp-editor.c | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) (limited to 'calendar/gui/dialogs/comp-editor.c') diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c index aff3bb6b46..ba99ce60f4 100644 --- a/calendar/gui/dialogs/comp-editor.c +++ b/calendar/gui/dialogs/comp-editor.c @@ -1159,7 +1159,8 @@ button_press_event (GtkWidget *widget, GdkEventButton *event) static gint key_press_event(GtkWidget *widget, GdkEventKey *event) { - EAttachmentBar *bar = E_ATTACHMENT_BAR (widget); + CompEditor *Editor = COMP_EDITOR (widget); + EAttachmentBar *bar = E_ATTACHMENT_BAR (Editor->priv->attachment_bar); if (event->keyval == GDK_Delete) { e_attachment_bar_remove_selected (bar); @@ -1172,7 +1173,8 @@ key_press_event(GtkWidget *widget, GdkEventKey *event) static gint editor_key_press_event(GtkWidget *widget, GdkEventKey *event, CompEditor *editor) { - EAttachmentBar *bar = E_ATTACHMENT_BAR (widget); + CompEditor *Editor = COMP_EDITOR (widget); + EAttachmentBar *bar = E_ATTACHMENT_BAR (Editor->priv->attachment_bar); if (event->keyval == GDK_Escape) { commit_all_fields (editor); @@ -2384,7 +2386,7 @@ static gboolean real_send_comp (CompEditor *editor, ECalComponentItipMethod method) { CompEditorPrivate *priv; - ECalComponent *tmp_comp, *send_comp; + ECalComponent *send_comp; char *address = NULL; g_return_val_if_fail (editor != NULL, FALSE); @@ -2404,15 +2406,6 @@ real_send_comp (CompEditor *editor, ECalComponentItipMethod method) if (!e_cal_component_has_attachments (priv->comp)) { if (itip_send_comp (method, send_comp, priv->client, NULL, NULL)) { -#if 0 - tmp_comp = priv->comp; - g_object_ref (tmp_comp); - comp_editor_edit_comp (editor, tmp_comp); - g_object_unref (tmp_comp); - - comp_editor_set_changed (editor, TRUE); -#endif - save_comp (editor); g_object_unref (send_comp); return TRUE; } @@ -2434,12 +2427,6 @@ real_send_comp (CompEditor *editor, ECalComponentItipMethod method) mime_attach_list = comp_editor_get_mime_attach_list (editor); if (itip_send_comp (method, send_comp, priv->client, NULL, mime_attach_list)) { - tmp_comp = priv->comp; - g_object_ref (tmp_comp); - comp_editor_edit_comp (editor, tmp_comp); - g_object_unref (tmp_comp); - - comp_editor_set_changed (editor, TRUE); save_comp (editor); g_object_unref (send_comp); return TRUE; -- cgit v1.2.3