aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchen@src.gnome.org>2006-02-09 14:30:37 +0800
committerChenthill Palanisamy <pchen@src.gnome.org>2006-02-09 14:30:37 +0800
commit9b5411672788c7eeb2201d0f3fd3bec39c2bb40e (patch)
tree3be7611091ed7454f3d0ec7dab3976c2834c7a55 /calendar/gui
parente0378bff334b5d828af230ef8a939fbe9f81d98d (diff)
downloadgsoc2013-evolution-9b5411672788c7eeb2201d0f3fd3bec39c2bb40e.tar.gz
gsoc2013-evolution-9b5411672788c7eeb2201d0f3fd3bec39c2bb40e.tar.zst
gsoc2013-evolution-9b5411672788c7eeb2201d0f3fd3bec39c2bb40e.zip
fixes #329768
svn path=/trunk/; revision=31458
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/dialogs/comp-editor.c6
1 files changed, 2 insertions, 4 deletions
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;
}