[f-spot: 6/41] wip
- From: Stephane Delcroix <sdelcroix src gnome org>
- To: svn-commits-list gnome org
- Subject: [f-spot: 6/41] wip
- Date: Mon, 15 Jun 2009 08:40:22 -0400 (EDT)
commit 6c1a5d12c2acbd0983757e6c0d99ccfe62ac17c7
Author: Stephane Delcroix <stephane delcroix org>
Date: Mon Jun 8 11:15:30 2009 +0200
wip
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 13a4370..a79643d 100644
--- a/src/Widgets/ImageView.cs
+++ b/src/Widgets/ImageView.cs
@@ -187,6 +187,7 @@ namespace FSpot.Widgets
Selection = Gdk.Rectangle.Zero;
}
+ [Obsolete ("drop this, this should be done automatically on pixbuf or allocation changed")]
protected void UpdateMinZoom ()
{
if (Pixbuf == null)
@@ -206,5 +207,18 @@ namespace FSpot.Widgets
public event EventHandler ZoomChanged;
public event EventHandler SelectionChanged;
+ protected override bool OnExposeEvent (EventExpose evnt)
+ {
+ Console.WriteLine ("ImageView OnExposeEvent");
+
+ if (evnt == null)
+ return true;
+
+ foreach (Rectangle rect in evnt.Region.GetRectangles ())
+ {
+ Console.WriteLine ("drawing a rect");
+ }
+ return true;
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]