aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--lib/widgets/ephy-node-view.c6
2 files changed, 7 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index f8f1063dd..f194ec38e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-06-12 Xan Lopez <xan@masilla.org>
+
+ * lib/widgets/ephy-node-view.c: (ephy_node_view_select_node):
+
+ Use gtk_tree_selection_select_iter to make selection, fixes #114965.
+
2003-06-11 Christian Persch <chpe@cvs.gnome.org>
* src/bookmarks/ephy-bookmark-toolitem.h:
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