[evolution-patches] Fix for Bug #329768



Hi,
sending patch for review

Rajeev

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

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 <rajeevramanathan_2004 yahoo co in>
+
+	**Fixes #329768
+
+	* gui/dialogs/comp-editor.c: (key_press_event): Corrected problem with 
+	casting EAttachmentBar.
+
 2006-01-31  Tor Lillqvist  <tml novell com>
 
 	* gui/alarm-notify/alarm-queue.c (open_alarm_dialog,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]