From 16c3ad0f85fc550683fb96fc9215da433ce44d6e Mon Sep 17 00:00:00 2001 From: Yevgen Muntyan <17531749+muntyan@users.noreply.github.com> Date: Wed, 2 Jan 2008 19:29:13 -0600 Subject: [PATCH] Use gtk_tree_view_set_cursor() to select rows --- moo/mooedit/plugins/moofilelist.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/moo/mooedit/plugins/moofilelist.c b/moo/mooedit/plugins/moofilelist.c index d1c69ff8..48227b37 100644 --- a/moo/mooedit/plugins/moofilelist.c +++ b/moo/mooedit/plugins/moofilelist.c @@ -1938,14 +1938,9 @@ treeview_button_press (GtkTreeView *treeview, selection = gtk_tree_view_get_selection (treeview); if (!path) - { gtk_tree_selection_unselect_all (selection); - } else if (!gtk_tree_selection_path_is_selected (selection, path)) - { - gtk_tree_selection_unselect_all (selection); - gtk_tree_selection_select_path (selection, path); - } + gtk_tree_view_set_cursor (treeview, path, plugin->column, FALSE); selected = gtk_tree_selection_get_selected_rows (selection, NULL); popup_menu (plugin, selected, event->button, event->time);