[gthumb: 12/20] do not clear the selection when shift-clicking in the empty space



commit 5f80f02464758320bcf6d5b91dd6c1a92b0feddd
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Mon Mar 29 00:54:46 2010 +0200

    do not clear the selection when shift-clicking in the empty space

 gthumb/gth-icon-view.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/gthumb/gth-icon-view.c b/gthumb/gth-icon-view.c
index 8e2b489..e34a18c 100644
--- a/gthumb/gth-icon-view.c
+++ b/gthumb/gth-icon-view.c
@@ -502,10 +502,8 @@ icon_view_button_press_event_cb (GtkWidget      *widget,
 
 		path = gtk_icon_view_get_path_at_pos (GTK_ICON_VIEW (icon_view), event->x, event->y);
 		if (path == NULL) {
-			if (event->state & GDK_SHIFT_MASK) {
-				gtk_icon_view_unselect_all (GTK_ICON_VIEW (icon_view));
+			if (event->state & GDK_SHIFT_MASK)
 				return TRUE;
-			}
 			else
 				return FALSE;
 		}



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