aboutsummaryrefslogtreecommitdiffstats
path: root/lib/widgets/ephy-node-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/widgets/ephy-node-view.c')
-rw-r--r--lib/widgets/ephy-node-view.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/widgets/ephy-node-view.c b/lib/widgets/ephy-node-view.c
index 4c1f7ff1c..6072ba0c2 100644
--- a/lib/widgets/ephy-node-view.c
+++ b/lib/widgets/ephy-node-view.c
@@ -952,7 +952,6 @@ ephy_node_view_select_node (EphyNodeView *view,
GtkTreeIter iter, iter2;
GValue val = { 0, };
gboolean visible;
- GtkTreePath *path;
g_return_if_fail (node != NULL);
@@ -969,10 +968,7 @@ 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);
- path = gtk_tree_model_get_path (GTK_TREE_MODEL (view->priv->sortmodel), &iter);
- gtk_tree_view_set_cursor (GTK_TREE_VIEW (view),
- path, NULL, FALSE);
- gtk_tree_path_free (path);
+ gtk_tree_selection_select_iter (gtk_tree_view_get_selection (view), &iter);
}
void