From 9b5411672788c7eeb2201d0f3fd3bec39c2bb40e Mon Sep 17 00:00:00 2001 From: Chenthill Palanisamy Date: Thu, 9 Feb 2006 06:30:37 +0000 Subject: fixes #329768 svn path=/trunk/; revision=31458 --- calendar/gui/dialogs/comp-editor.c | 6 ++---- 1 file changed, 2 insertions(+), 4 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 d0bcbd4b1d..96055ab084 100644 --- a/calendar/gui/dialogs/comp-editor.c +++ b/calendar/gui/dialogs/comp-editor.c @@ -1190,10 +1190,8 @@ button_press_event (GtkWidget *widget, GdkEventButton *event) static gint key_press_event(GtkWidget *widget, GdkEventKey *event) { - CompEditor *Editor = COMP_EDITOR (widget); - EAttachmentBar *bar = E_ATTACHMENT_BAR (Editor->priv->attachment_bar); - - if (event->keyval == GDK_Delete) { + EAttachmentBar *bar = (EAttachmentBar *)widget; + if (event->keyval == GDK_Delete) { e_attachment_bar_remove_selected (bar); return TRUE; } -- cgit