Author: rolf
Date: 2007-06-13 15:40:44 -0400 (Wed, 13 Jun 2007)
New Revision: 79490
Modified:
trunk/olive/class/agclr/System.Windows.Controls/Canvas.cs
trunk/olive/class/agclr/System.Windows.Controls/ChangeLog
trunk/olive/class/agclr/System.Windows.Controls/Panel.cs
Log:
* Canvas.cs, Panel.cs: Second pass on constructors.
Modified: trunk/olive/class/agclr/System.Windows.Controls/Canvas.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Controls/Canvas.cs 2007-06-13
19:40:33 UTC (rev 79489)
+++ trunk/olive/class/agclr/System.Windows.Controls/Canvas.cs 2007-06-13
19:40:44 UTC (rev 79490)
@@ -39,14 +39,12 @@
TopProperty = DependencyProperty.Lookup (Kind.CANVAS,
"Top", typeof (double));
}
- public Canvas ()
+ public Canvas () : base (NativeMethods.canvas_new ())
{
- native = Mono.NativeMethods.canvas_new ();
}
- internal Canvas (IntPtr raw)
+ internal Canvas (IntPtr raw) : base (raw)
{
- native = raw;
}
static internal Canvas FromPtr (IntPtr raw)
Modified: trunk/olive/class/agclr/System.Windows.Controls/ChangeLog
===================================================================
--- trunk/olive/class/agclr/System.Windows.Controls/ChangeLog 2007-06-13
19:40:33 UTC (rev 79489)
+++ trunk/olive/class/agclr/System.Windows.Controls/ChangeLog 2007-06-13
19:40:44 UTC (rev 79490)
@@ -1,5 +1,9 @@
2007-06-13 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
+ * Canvas.cs, Panel.cs: Second pass on constructors.
+
+2007-06-13 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
+
* Panel.cs: Fix constructor, don't construct anything if we're not the
class to construct.
Modified: trunk/olive/class/agclr/System.Windows.Controls/Panel.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Controls/Panel.cs 2007-06-13
19:40:33 UTC (rev 79489)
+++ trunk/olive/class/agclr/System.Windows.Controls/Panel.cs 2007-06-13
19:40:44 UTC (rev 79490)
@@ -41,11 +41,13 @@
BackgroundProperty = DependencyProperty.Lookup
(Kind.PANEL, "Background", typeof (Brush));
}
- public Panel ()
+ public Panel () : base (NativeMethods.panel_new ())
{
- if (GetKind () == Kind.PANEL)
- native = NativeMethods.panel_new ();
}
+
+ internal Panel (IntPtr raw) : base (raw)
+ {
+ }
public Brush Background {
get {
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches