changeset 15274:ca72c74bf5e3

[gaim-migrate @ 18063] Make sure the selected item in the dropdown also has the keyboard focus. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 27 Dec 2006 15:01:39 +0000
parents b3f5d5854017
children d2409786013b
files gtk/gtkstatusbox.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gtk/gtkstatusbox.c	Wed Dec 27 13:34:33 2006 +0000
+++ b/gtk/gtkstatusbox.c	Wed Dec 27 15:01:39 2006 +0000
@@ -1309,8 +1309,7 @@
 
 	if (box->active_row) {
 		GtkTreePath *path = gtk_tree_row_reference_get_path(box->active_row);
-		GtkTreeSelection *sel = gtk_tree_view_get_selection (GTK_TREE_VIEW (box->tree_view));
-		gtk_tree_selection_select_path(sel, path);
+		gtk_tree_view_set_cursor(GTK_TREE_VIEW(box->tree_view), path, NULL, FALSE);
 		gtk_tree_path_free(path);
 	}
 }