Author: miguel
Date: 2008-01-28 00:12:11 -0500 (Mon, 28 Jan 2008)
New Revision: 94112
Modified:
trunk/moon/gtk/gtk.cs
Log:
Add new property
Modified: trunk/moon/gtk/gtk.cs
===================================================================
--- trunk/moon/gtk/gtk.cs 2008-01-28 04:49:33 UTC (rev 94111)
+++ trunk/moon/gtk/gtk.cs 2008-01-28 05:12:11 UTC (rev 94112)
@@ -162,9 +162,24 @@
MethodInfo m = typeof (Canvas).Assembly.GetType
("Mono.Hosting").
GetMethod ("SurfaceAttach", BindingFlags.Static |
BindingFlags.NonPublic);
m.Invoke (null, new object [] { surface, canvas });
+ c = canvas;
}
+ Canvas c;
+
/// <summary>
+ /// The currently attached Canvas.
+ /// </summary>
+ /// <remarks>
+ /// This returns the instance of the currently attached Canvas.
+ /// </remarks>
+ public Canvas Canvas {
+ get {
+ return c;
+ }
+ }
+
+ /// <summary>
/// Resizes the surface to the specified size.
/// </summary>
/// <param name="width">The new width.</param>
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches