changeset 18196:a4dee68e040f

Let non-delete keys operate.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Tue, 19 Jun 2007 18:31:46 +0000
parents 9c17cdcfc799
children 9287055b97d2
files pidgin/gtkstatusbox.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkstatusbox.c	Tue Jun 19 17:19:52 2007 +0000
+++ b/pidgin/gtkstatusbox.c	Tue Jun 19 18:31:46 2007 +0000
@@ -1624,15 +1624,17 @@
 			GtkTreePath *path;
 
 			if (gtk_tree_selection_get_selected(sel, NULL, &iter)) {
+				gboolean ret = TRUE;
 				path = gtk_tree_model_get_path(GTK_TREE_MODEL(box->dropdown_store), &iter);
 				if (event->keyval == GDK_Return) {
 					treeview_activate_current_selection(box, path);
 				} else if (event->keyval == GDK_Delete) {
 					tree_view_delete_current_selection(box, path);
-				}
+				} else
+					ret = FALSE;
 
 				gtk_tree_path_free (path);
-				return TRUE;
+				return ret;
 			}
 		} 
 	}