[nautilus] list-view: don't call parent when the row has been selected



commit 2d72365cb5bedc514e7e3d16e3e5da27d0dcce3b
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Oct 10 16:40:34 2012 -0400

    list-view: don't call parent when the row has been selected
    
    This is a regression from commit
    0b9ddf8826d68325f3070723e73177f134bc8b1f, which broke dragging multiple
    rows.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=683751

 src/nautilus-list-view.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-list-view.c b/src/nautilus-list-view.c
index c1a8c36..52631c3 100644
--- a/src/nautilus-list-view.c
+++ b/src/nautilus-list-view.c
@@ -720,7 +720,9 @@ button_press_callback (GtkWidget *widget, GdkEventButton *event, gpointer callba
 			    ((event->state & GDK_CONTROL_MASK) != 0 ||
 			     (event->state & GDK_SHIFT_MASK) == 0)) {			
 				view->details->row_selected_on_button_down = gtk_tree_selection_path_is_selected (selection, path);
-				if ((event->state & GDK_CONTROL_MASK) != 0) {
+				if (view->details->row_selected_on_button_down) {
+					call_parent = FALSE;
+				} else if ((event->state & GDK_CONTROL_MASK) != 0) {
 					GList *selected_rows;
 					GList *l;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]