[evolution-patches] Patch to fix #336454



Hi,

Here is the patch to fix #336454:
http://bugzilla.gnome.org/show_bug.cgi?id=336454
Please help me to review it.

Regards,
Li
? addressbook.error
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/ChangeLog,v
retrieving revision 1.2064
diff -u -r1.2064 ChangeLog
--- ChangeLog	10 Mar 2006 07:28:56 -0000	1.2064
+++ ChangeLog	29 Mar 2006 09:20:41 -0000
@@ -1,3 +1,11 @@
+2006-03-29  Li Yuan <li yuan sun com>
+
+	Fix for bug #336454
+	* gui/component/addressbook-view.c:
+	(source_selector_key_press_event_callback):
+	we should return false if it is not a del event to make gtktreeview
+	deal the rest of keys.
+
 2006-03-10  Devashish Sharma  <sdevashish novell com>
 
 	* gui/component/ldap-config.glade : ldap port numbers
Index: gui/component/addressbook-view.c
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/gui/component/addressbook-view.c,v
retrieving revision 1.45
diff -u -r1.45 addressbook-view.c
--- gui/component/addressbook-view.c	27 Feb 2006 08:54:55 -0000	1.45
+++ gui/component/addressbook-view.c	29 Mar 2006 09:20:41 -0000
@@ -1276,13 +1276,14 @@
 	parent_class = g_type_class_peek_parent (klass);
 }
 
-static void
+static gboolean 
 source_selector_key_press_event_callback (GtkWidget *widget, GdkEventKey *event, AddressbookView *view)
 {
 	if (event->keyval == GDK_Delete) {
-		delete_addressbook_folder (view);		
+		delete_addressbook_folder (view);
+		return TRUE;		
 	}
-	return;
+	return FALSE;
 }
 
 static void


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