comparison gtk/gtkstatusbox.c @ 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 cfdd47296dbc
children 85a2aafc9c4b
comparison
equal deleted inserted replaced
15273:b3f5d5854017 15274:ca72c74bf5e3
1307 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (box->toggle_button), 1307 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (box->toggle_button),
1308 TRUE); 1308 TRUE);
1309 1309
1310 if (box->active_row) { 1310 if (box->active_row) {
1311 GtkTreePath *path = gtk_tree_row_reference_get_path(box->active_row); 1311 GtkTreePath *path = gtk_tree_row_reference_get_path(box->active_row);
1312 GtkTreeSelection *sel = gtk_tree_view_get_selection (GTK_TREE_VIEW (box->tree_view)); 1312 gtk_tree_view_set_cursor(GTK_TREE_VIEW(box->tree_view), path, NULL, FALSE);
1313 gtk_tree_selection_select_path(sel, path);
1314 gtk_tree_path_free(path); 1313 gtk_tree_path_free(path);
1315 } 1314 }
1316 } 1315 }
1317 1316
1318 static void 1317 static void