[f-spot/FSPOT_0_6_0_STABLE] avoid starting a selection on dbl-click



commit 97de5bbaafe6a227123d1e2a6bc6f9456ba335c7
Author: Stephane Delcroix <stephane delcroix org>
Date:   Mon Aug 10 11:41:09 2009 +0200

    avoid starting a selection on dbl-click
    
    this fixes bgo #591181

 src/Widgets/ImageView.cs |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/Widgets/ImageView.cs b/src/Widgets/ImageView.cs
index 463f509..2ba323c 100644
--- a/src/Widgets/ImageView.cs
+++ b/src/Widgets/ImageView.cs
@@ -921,8 +921,11 @@ namespace FSpot.Widgets
 			if (evnt.Button != 1)
 				return false;
 
-			if (evnt.Type == EventType.TwoButtonPress) 
+			if (evnt.Type == EventType.TwoButtonPress) {
+				is_dragging_selection = false;
+				is_moving_selection = false;
 				return false;
+			}
 			
 			Point img = WindowCoordsToImage (new Point ((int)evnt.X, (int)evnt.Y));
 			switch (GetDragMode ((int)evnt.X, (int)evnt.Y)) {



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