Bug 588943 – set correct selection before emitting cursor-changed when searching

Make sure the correct selection is set when emitting cursor-changed
during an interactive search
This commit is contained in:
Paolo Borelli 2009-07-18 13:14:07 +02:00
parent 3484246dc3
commit 48f1b45b62

View File

@ -14591,8 +14591,8 @@ gtk_tree_view_search_iter (GtkTreeModel *model,
{
gtk_tree_view_scroll_to_cell (tree_view, path, NULL,
TRUE, 0.5, 0.0);
gtk_tree_view_real_set_cursor (tree_view, path, FALSE, TRUE);
gtk_tree_selection_select_iter (selection, iter);
gtk_tree_view_real_set_cursor (tree_view, path, FALSE, TRUE);
if (path)
gtk_tree_path_free (path);