[f-spot] add crop helpers mark at 1/3 and 2/3
- From: Stephane Delcroix <sdelcroix src gnome org>
- To: svn-commits-list gnome org
- Subject: [f-spot] add crop helpers mark at 1/3 and 2/3
- Date: Mon, 13 Jul 2009 08:35:13 +0000 (UTC)
commit 0869aa18396073ca1e3e8a40d44c8486f32e5eb4
Author: Stephane Delcroix <stephane delcroix org>
Date: Mon Jul 13 10:34:57 2009 +0200
add crop helpers mark at 1/3 and 2/3
src/Widgets/DateEdit.cs | 1 -
src/Widgets/ImageView.cs | 16 ++++++++++++++++
2 files changed, 16 insertions(+), 1 deletions(-)
---
diff --git a/src/Widgets/DateEdit.cs b/src/Widgets/DateEdit.cs
index 1332a64..96bfd6d 100644
--- a/src/Widgets/DateEdit.cs
+++ b/src/Widgets/DateEdit.cs
@@ -245,7 +245,6 @@ namespace FSpot.Widgets
void HandleCalendarDaySelected (object sender, EventArgs e)
{
- Console.WriteLine ("DateTimeOffset += (calendar.Date ({0}) - DateTimeOffset.Date ({1}))", calendar.Date, DateTimeOffset.Date);
DateTimeOffset += (calendar.Date - DateTimeOffset.Date);
}
diff --git a/src/Widgets/ImageView.cs b/src/Widgets/ImageView.cs
index ed98a2f..80f3877 100644
--- a/src/Widgets/ImageView.cs
+++ b/src/Widgets/ImageView.cs
@@ -888,6 +888,22 @@ namespace FSpot.Widgets
ctx.SetSourceRGBA (.5, .5, .5, .7);
CairoHelper.Region (ctx, evnt.Region);
ctx.Fill ();
+
+ ctx.SetDash (new double [] {10, 15}, 0);
+ for (int i=1; i<3; i++) {
+ Point s = ImageCoordsToWindow (new Point (selection.X + selection.Width / 3 * i, selection.Y));
+ Point e = ImageCoordsToWindow (new Point (selection.X + selection.Width / 3 * i, selection.Y + selection.Height));
+ ctx.MoveTo (s.X, s.Y);
+ ctx.LineTo (e.X, e.Y);
+ ctx.Stroke ();
+ }
+ for (int i=1; i<3; i++) {
+ Point s = ImageCoordsToWindow (new Point (selection.X, selection.Y + selection.Height / 3 * i));
+ Point e = ImageCoordsToWindow (new Point (selection.X + selection.Width, selection.Y + selection.Height / 3 * i));
+ ctx.MoveTo (s.X, s.Y);
+ ctx.LineTo (e.X, e.Y);
+ ctx.Stroke ();
+ }
}
return true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]