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/ChangeLog | 6 ++++++ calendar/gui/dialogs/comp-editor.c | 6 ++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index d00acca64b..9251309628 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,9 @@ +2006-01-09 Rajeev ramanathan + + Fixes #329768 + * gui/dialogs/comp-editor.c: (key_press_event): Corrected problem with + casting EAttachmentBar. + 2006-02-09 Chenthill Palanisamy Fixes #330465 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