diff --git a/ChangeLog b/ChangeLog index 681b91a2c..bca63297d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2004-07-09 Mike Kestner + + * glib/Value.cs : allow null for ctor(GLib.Object). + 2004-07-16 John Luke * gtk/Gtk.metadata: diff --git a/glib/Value.cs b/glib/Value.cs index 6082ab42e..0d51aa8b2 100755 --- a/glib/Value.cs +++ b/glib/Value.cs @@ -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")]