2004-07-09 Mike Kestner <mkestner@ximian.com>

* glib/Value.cs : allow null for ctor(GLib.Object).

svn path=/trunk/gtk-sharp/; revision=31408
This commit is contained in:
Mike Kestner 2004-07-23 14:54:48 +00:00
parent fe72969e47
commit d9f518cd57
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2004-07-09 Mike Kestner <mkestner@ximian.com>
* glib/Value.cs : allow null for ctor(GLib.Object).
2004-07-16 John Luke <jluke@cfl.rr.com>
* gtk/Gtk.metadata:

View File

@ -131,9 +131,9 @@ namespace GLib {
[DllImport("libgobject-2.0-0.dll")]
static extern void g_value_set_object (ref Value val, IntPtr data);
public Value (GLib.Object val) : this (val.NativeType)
public Value (GLib.Object val) : this (val == null ? GType.Object : val.NativeType)
{
g_value_set_object (ref this, val.Handle);
g_value_set_object (ref this, val == null ? IntPtr.Zero : val.Handle);
}
[DllImport("libgobject-2.0-0.dll")]