[f-spot] Make crop helpers optional



commit 1d1d2b2adf3a2d7227cf9ea0ee72d92690a82ad9
Author: Lorenzo Milesi <maxxer yetopen it>
Date:   Tue Jul 14 20:27:38 2009 +0200

    Make crop helpers optional

 src/Widgets/ImageView.cs |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/src/Widgets/ImageView.cs b/src/Widgets/ImageView.cs
index 006d1cb..d561d84 100644
--- a/src/Widgets/ImageView.cs
+++ b/src/Widgets/ImageView.cs
@@ -112,6 +112,17 @@ namespace FSpot.Widgets
 			}
 		}
 
+		bool crop_helpers = true;
+		public bool CropHelpers {
+			get { return crop_helpers; }
+			set { 
+				if (crop_helpers == value)
+					return;
+				crop_helpers = value;
+				QueueDraw ();
+			}
+		}
+
 		Gdk.Rectangle selection = Rectangle.Zero;
 		public Gdk.Rectangle Selection {
 			get {
@@ -889,6 +900,9 @@ namespace FSpot.Widgets
 				CairoHelper.Region (ctx, evnt.Region);
 				ctx.Fill ();
 
+				if (!crop_helpers)
+					return true;
+
 				ctx.SetSourceRGBA (.7, .7, .7, .8);
 				ctx.SetDash (new double [] {10, 15}, 0);
 				ctx.LineWidth = .8;



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