diff options
-rw-r--r-- | calendar/ChangeLog | 6 | ||||
-rw-r--r-- | 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 <rajeevramanathan_2004@yahoo.co.in> + + Fixes #329768 + * gui/dialogs/comp-editor.c: (key_press_event): Corrected problem with + casting EAttachmentBar. + 2006-02-09 Chenthill Palanisamy <pchenthill@novell.com> 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; } |