aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2003-06-12 06:15:02 +0800
committerXan Lopez <xan@src.gnome.org>2003-06-12 06:15:02 +0800
commitf59dbefb87ef01a428d3d950b9508ef9af4e624c (patch)
tree99b0b860035ceb167d212fd9fb6b3d2aaf8d10d1 /lib
parent45aa254e9c7d745fe0d8aaa1627fced919b0bbdc (diff)
downloadgsoc2013-epiphany-f59dbefb87ef01a428d3d950b9508ef9af4e624c.tar
gsoc2013-epiphany-f59dbefb87ef01a428d3d950b9508ef9af4e624c.tar.gz
gsoc2013-epiphany-f59dbefb87ef01a428d3d950b9508ef9af4e624c.tar.bz2
gsoc2013-epiphany-f59dbefb87ef01a428d3d950b9508ef9af4e624c.tar.lz
gsoc2013-epiphany-f59dbefb87ef01a428d3d950b9508ef9af4e624c.tar.xz
gsoc2013-epiphany-f59dbefb87ef01a428d3d950b9508ef9af4e624c.tar.zst
gsoc2013-epiphany-f59dbefb87ef01a428d3d950b9508ef9af4e624c.zip
Use gtk_tree_selection_select_iter to make selection, fixes #114965.
Use gtk_tree_selection_select_iter to make selection, fixes #114965.
Diffstat (limited to 'lib')
-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