Patch to fix #336454

Li Yuan <[email protected]>
Newsgroups gmane.comp.gnome.evolution.patches
Message-ID <[email protected]>
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

_______________________________________________
Evolution-patches mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/evolution-patches
mar29-336454.diff (text/x-patch, 1.4 KB)
? 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 <[email protected]>
+
+	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  <[email protected]>
 
 	* 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
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.