Fix for Bug #329768

Rajeev ramanathan <[email protected]>
Newsgroups gmane.comp.gnome.evolution.patches
Message-ID <[email protected]>
Hi,
 sending patch for review
 
 Rajeev

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com

_______________________________________________
Evolution-patches mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/evolution-patches
cal-crash1.diff (text/x-patch, 1.4 KB)
Index: gui/dialogs/comp-editor.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/dialogs/comp-editor.c,v
retrieving revision 1.164
diff -u -p -r1.164 comp-editor.c
--- gui/dialogs/comp-editor.c	8 Feb 2006 13:06:24 -0000	1.164
+++ gui/dialogs/comp-editor.c	9 Feb 2006 05:44:52 -0000
@@ -1190,10 +1190,8 @@ button_press_event (GtkWidget *widget, G
 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;
         }
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2973
diff -u -p -r1.2973 ChangeLog
--- ChangeLog	31 Jan 2006 09:12:12 -0000	1.2973
+++ ChangeLog	9 Feb 2006 05:45:12 -0000
@@ -1,3 +1,10 @@
+2006-01-09  Rajeev ramanathan <[email protected]>
+
+	**Fixes #329768
+
+	* gui/dialogs/comp-editor.c: (key_press_event): Corrected problem with 
+	casting EAttachmentBar.
+
 2006-01-31  Tor Lillqvist  <[email protected]>
 
 	* gui/alarm-notify/alarm-queue.c (open_alarm_dialog,
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.