[f-spot: 15/41] replace HandleSizeAllocated by OnSizeAllocated override



commit 044d7671042763bf961cf082a42f34a2b63565fd
Author: Stephane Delcroix <stephane delcroix org>
Date:   Tue Jun 9 12:24:59 2009 +0200

    replace HandleSizeAllocated by OnSizeAllocated override

 src/PhotoImageView.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/PhotoImageView.cs b/src/PhotoImageView.cs
index 7f7d31a..3ef67fb 100644
--- a/src/PhotoImageView.cs
+++ b/src/PhotoImageView.cs
@@ -39,7 +39,6 @@ namespace FSpot.Widgets {
 
 			HandleRealized (null, null);
 
-			this.SizeAllocated += HandleSizeAllocated;
 			this.KeyPressEvent += HandleKeyPressEvent;
 			//this.Realized += HandleRealized;
 			this.Unrealized += HandleUnrealized;
@@ -255,10 +254,11 @@ namespace FSpot.Widgets {
 			}
 		}
 		
-		private void HandleSizeAllocated (object sender, Gtk.SizeAllocatedArgs args)
+		protected override void OnSizeAllocated (Gdk.Rectangle allocation)
 		{
 			if (fit)
 				ZoomFit ();
+			base.OnSizeAllocated (allocation);
 		}
 
 		FSpot.AsyncPixbufLoader loader;



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