2007-09-21 Mike Kestner <mkestner@novell.com>

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

svn path=/trunk/gtk-sharp/; revision=86730
This commit is contained in:
Mike Kestner 2007-10-02 03:02:43 +00:00
parent 9f780a56b2
commit 70bd5d56e9
2 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2007-09-21 Mike Kestner <mkestner@novell.com>
* glib/Object.cs: add ctor (), which invokes CreateNativeObject
to allow direct subclasses that do all the registration automatically.
2007-09-21 Mike Kestner <mkestner@novell.com>
* generator/*.cs: add DefaultValue prop for obtaining a

View file

@ -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);