Author: mkestner
Date: 2007-10-01 23:02:43 -0400 (Mon, 01 Oct 2007)
New Revision: 86730

Modified:
   trunk/gtk-sharp/ChangeLog
   trunk/gtk-sharp/glib/Object.cs
Log:

2007-09-21  Mike Kestner  <[EMAIL PROTECTED]>

        * glib/Object.cs: add ctor (), which invokes CreateNativeObject
        to allow direct subclasses that do all the registration automatically.


Modified: trunk/gtk-sharp/ChangeLog
===================================================================
--- trunk/gtk-sharp/ChangeLog   2007-10-02 00:00:04 UTC (rev 86729)
+++ trunk/gtk-sharp/ChangeLog   2007-10-02 03:02:43 UTC (rev 86730)
@@ -1,5 +1,10 @@
 2007-09-21  Mike Kestner  <[EMAIL PROTECTED]>
 
+       * glib/Object.cs: add ctor (), which invokes CreateNativeObject
+       to allow direct subclasses that do all the registration automatically.
+
+2007-09-21  Mike Kestner  <[EMAIL PROTECTED]>
+
        * generator/*.cs: add DefaultValue prop for obtaining a
        sane value when we need to return a value but something bad has 
        happened such that we can't get a real value.  Needed for iface

Modified: trunk/gtk-sharp/glib/Object.cs
===================================================================
--- trunk/gtk-sharp/glib/Object.cs      2007-10-02 00:00:04 UTC (rev 86729)
+++ trunk/gtk-sharp/glib/Object.cs      2007-10-02 03:02:43 UTC (rev 86730)
@@ -269,6 +269,11 @@
                        Raw = raw;
                }
 
+               protected Object ()
+               {
+                       CreateNativeObject (new string [0], new GLib.Value [0]);
+               }
+
                [DllImport("libgobject-2.0-0.dll")]
                static extern IntPtr g_object_new (IntPtr gtype, IntPtr dummy);
 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to