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:
parent
fe72969e47
commit
d9f518cd57
2 changed files with 6 additions and 2 deletions
|
@ -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:
|
||||
|
|
|
@ -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")]
|
||||
|
|
Loading…
Reference in a new issue