summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2003-06-11 13:45:36 +0000
committerAlexander Larsson <alexl@src.gnome.org>2003-06-11 13:45:36 +0000
commit9e2f9f2cde4ca9fa466bb18d657573fb9edb609d (patch)
treec77bdd0328624912c2ceb9518c4d87f1ce1618d0 /src
parent434c4f56c0d5ae1fed240d1463fd7f87cb354d58 (diff)
downloadnautilus-9e2f9f2cde4ca9fa466bb18d657573fb9edb609d.tar.gz
Don't deselect multiple selected files when dragging with middle button.
2003-06-11 Alexander Larsson <alexl@redhat.com> * 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.
Diffstat (limited to 'src')
-rw-r--r--src/file-manager/fm-list-view.c8
1 files changed, 5 insertions, 3 deletions
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;
}