diff --git a/ChangeLog b/ChangeLog index d1d8a3bd4..de261df65 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-09-21 Mike Kestner + + * glib/Object.cs: add ctor (), which invokes CreateNativeObject + to allow direct subclasses that do all the registration automatically. + 2007-09-21 Mike Kestner * generator/*.cs: add DefaultValue prop for obtaining a diff --git a/glib/Object.cs b/glib/Object.cs index ac71fca48..32f71c4fa 100644 --- a/glib/Object.cs +++ b/glib/Object.cs @@ -269,6 +269,11 @@ namespace GLib { 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);