From aaf367e6ca143eb22deeee902cbb9955de68305b Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Mon, 14 Jul 2003 09:51:37 +0000 Subject: We use g_list_prepend to create selections now (in We use g_list_prepend to create selections now (in ephy_node_view_get_selection() and inside pdm_cmd_delete_selection), so the last element selected is the first in the list and we need to use g_list_first instead of _last to make intelligent selection after removal work on multiple selections. --- lib/widgets/ephy-node-view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/widgets') diff --git a/lib/widgets/ephy-node-view.c b/lib/widgets/ephy-node-view.c index 6e000358a..c83b92e62 100644 --- a/lib/widgets/ephy-node-view.c +++ b/lib/widgets/ephy-node-view.c @@ -985,7 +985,7 @@ ephy_node_view_remove (EphyNodeView *view) list = ephy_node_view_get_selection (view); g_return_if_fail (list != NULL); - node = g_list_last (list)->data; + node = g_list_first (list)->data; ephy_tree_model_node_iter_from_node (EPHY_TREE_MODEL_NODE (view->priv->nodemodel), node, &iter); egg_tree_model_filter_convert_child_iter_to_iter (EGG_TREE_MODEL_FILTER (view->priv->filtermodel), -- cgit v1.2.3