From 9e2f9f2cde4ca9fa466bb18d657573fb9edb609d Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Wed, 11 Jun 2003 13:45:36 +0000 Subject: Don't deselect multiple selected files when dragging with middle button. 2003-06-11 Alexander Larsson * src/file-manager/fm-list-view.c (fm_list_view_did_not_drag) (button_press_callback): Don't deselect multiple selected files when dragging with middle button. --- ChangeLog | 7 +++++++ src/file-manager/fm-list-view.c | 8 +++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index b64151fc7..71c96abc6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2003-06-11 Alexander Larsson + + * src/file-manager/fm-list-view.c (fm_list_view_did_not_drag) + (button_press_callback): + Don't deselect multiple selected files when dragging + with middle button. + 2003-06-11 Alexander Larsson * icons/Makefile.am: diff --git a/src/file-manager/fm-list-view.c b/src/file-manager/fm-list-view.c index 0633bc369..09cd4232c 100644 --- a/src/file-manager/fm-list-view.c +++ b/src/file-manager/fm-list-view.c @@ -177,7 +177,7 @@ fm_list_view_did_not_drag (FMListView *view, if (gtk_tree_view_get_path_at_pos (tree_view, event->x, event->y, &path, NULL, NULL, NULL)) { - if(event->button == 1 + if((event->button == 1 || event->button == 2) && (click_policy_auto_value == NAUTILUS_CLICK_POLICY_DOUBLE) && gtk_tree_selection_path_is_selected (selection, path) && !button_event_modifies_selection (event)) { @@ -446,11 +446,13 @@ button_press_callback (GtkWidget *widget, GdkEventButton *event, gpointer callba * want that; we want the right click menu or single * click to apply to everything that's currently selected. */ - if (event->button == 3 && gtk_tree_selection_path_is_selected (selection, path)) { + if (event->button == 3 && gtk_tree_selection_path_is_selected (selection, path)) { call_parent = FALSE; } - if(!button_event_modifies_selection (event) && event->button == 1 && gtk_tree_selection_path_is_selected (selection, path)) { + if(!button_event_modifies_selection (event) && + (event->button == 1 || event->button == 2) && + gtk_tree_selection_path_is_selected (selection, path)) { call_parent = FALSE; } -- cgit v1.2.1