[f-spot: 23/40] do not redraw if the pixbuf is set to self
- From: Stephane Delcroix <sdelcroix src gnome org>
- To: svn-commits-list gnome org
- Subject: [f-spot: 23/40] do not redraw if the pixbuf is set to self
- Date: Wed, 24 Jun 2009 09:49:38 +0000 (UTC)
commit a4f1f8b20cd8e24b2456b51efec892b2114658c1
Author: Stephane Delcroix <stephane delcroix org>
Date: Mon Jun 22 11:23:47 2009 +0200
do not redraw if the pixbuf is set to self
src/Widgets/ImageView.cs | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/Widgets/ImageView.cs b/src/Widgets/ImageView.cs
index 7523c19..a162b19 100644
--- a/src/Widgets/ImageView.cs
+++ b/src/Widgets/ImageView.cs
@@ -44,6 +44,9 @@ namespace FSpot.Widgets
public Pixbuf Pixbuf {
get { return pixbuf; }
set {
+ if (pixbuf == value)
+ return;
+
pixbuf = value;
min_zoom = ComputeMinZoom (upscale);
@@ -63,7 +66,6 @@ namespace FSpot.Widgets
if (value == pixbuf_orientation)
return;
pixbuf_orientation = value;
- Console.WriteLine ("pixbuf orientation changed to {0}", value);
min_zoom = ComputeMinZoom (upscale);
ComputeScaledSize ();
QueueDraw ();
@@ -87,7 +89,7 @@ namespace FSpot.Widgets
get { return pointer_mode; }
set {
pointer_mode = value;
- Console.WriteLine ("FIXME: Set the Pointer mode");
+ Log.Debug ("FIXME: Set the Pointer mode");
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]