Author: miguel
Date: 2007-06-19 10:56:31 -0400 (Tue, 19 Jun 2007)
New Revision: 80166
Modified:
trunk/moon/test/demo.cs
Log:
Add support for resizing the demo
Modified: trunk/moon/test/demo.cs
===================================================================
--- trunk/moon/test/demo.cs 2007-06-19 14:52:36 UTC (rev 80165)
+++ trunk/moon/test/demo.cs 2007-06-19 14:56:31 UTC (rev 80166)
@@ -142,6 +142,7 @@
next.Sensitive = false;
};
}
+
Button quit = new Button ("Quit");
quit.Clicked += delegate { Application.Quit (); };
@@ -151,6 +152,11 @@
w.Add (vb);
w.ShowAll ();
+ // When the window resizes, the widget is resized
+ w.SizeAllocated += delegate (object o, SizeAllocatedArgs a) {
+ silver.SizeAllocate (new Gdk.Rectangle (0, 0,
a.Allocation.Width, a.Allocation.Height));
+ };
+
//
// Now, the SL API
//
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches