diff options
Diffstat (limited to 'src/bookmarks/ephy-node-view.c')
-rw-r--r-- | src/bookmarks/ephy-node-view.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bookmarks/ephy-node-view.c b/src/bookmarks/ephy-node-view.c index 8b9927fb7..102cefb9c 100644 --- a/src/bookmarks/ephy-node-view.c +++ b/src/bookmarks/ephy-node-view.c @@ -520,6 +520,7 @@ ephy_node_view_select_node (EphyNodeView *view, GValue val = { 0, }; gboolean visible; GtkTreeSelection *selection; + GtkTreePath *path; selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (view->priv->treeview)); @@ -538,7 +539,10 @@ ephy_node_view_select_node (EphyNodeView *view, gtk_tree_model_sort_convert_child_iter_to_iter (GTK_TREE_MODEL_SORT (view->priv->sortmodel), &iter, &iter2); - gtk_tree_selection_select_iter (selection, &iter); + path = gtk_tree_model_get_path (GTK_TREE_MODEL (view->priv->sortmodel), &iter); + gtk_tree_view_set_cursor (GTK_TREE_VIEW (view->priv->treeview), + path, NULL, FALSE); + gtk_tree_path_free (path); } void |