[f-spot] Small cleanups.
- From: Ruben Vermeersch <rubenv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [f-spot] Small cleanups.
- Date: Tue, 10 Aug 2010 11:49:08 +0000 (UTC)
commit cea2ea2a465d072a32b283b2fd838918c69998b7
Author: Ruben Vermeersch <ruben savanne be>
Date: Tue Aug 10 13:44:44 2010 +0200
Small cleanups.
src/Clients/MainApp/FSpot.Widgets/PreviewPopup.cs | 10 ----------
1 files changed, 0 insertions(+), 10 deletions(-)
---
diff --git a/src/Clients/MainApp/FSpot.Widgets/PreviewPopup.cs b/src/Clients/MainApp/FSpot.Widgets/PreviewPopup.cs
index 41fe57f..7f2a97a 100644
--- a/src/Clients/MainApp/FSpot.Widgets/PreviewPopup.cs
+++ b/src/Clients/MainApp/FSpot.Widgets/PreviewPopup.cs
@@ -85,7 +85,6 @@ namespace FSpot {
g.Source = new SolidPattern (new Cairo.Color (0, 0, 0, 0));
g.Paint ();
g.Operator = Operator.Over;
-#if true
g.Source = new SolidPattern (new Cairo.Color (0, 0, 0, .7));
g.MoveTo (round, 0);
//g.LineTo (Allocation.Width - round, 0);
@@ -97,7 +96,6 @@ namespace FSpot {
g.Arc (round, round, round, Math.PI, Math.PI * 1.5);
g.ClosePath ();
g.Fill ();
-#endif
((IDisposable)g).Dispose ();
return base.OnExposeEvent (args);
}
@@ -162,16 +160,8 @@ namespace FSpot {
x = Math.Min (x, this.Screen.Width - requisition.Width);
// find the window's y location offset above or below depending on space
-#if USE_OFFSET_PREVIEW
- int margin = (int) (bounds.Height * .6);
- if (y - requisition.Height - margin < 0)
- y += margin;
- else
- y = y - requisition.Height - margin;
-#else
y = Math.Max (0, y - requisition.Height / 2);
y = Math.Min (y, this.Screen.Height - requisition.Height);
-#endif
this.Move (x, y);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]