2008-11-25 Mike Kestner <mkestner@novell.com>
* glib/Value.cs: fix for 'IntPtr as object' value construction. svn path=/trunk/gtk-sharp/; revision=120041
This commit is contained in:
parent
a40efc856c
commit
7a52b14c1c
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2008-11-25 Mike Kestner <mkestner@novell.com>
|
||||
|
||||
* glib/Value.cs: fix for 'IntPtr as object' value construction.
|
||||
|
||||
2008-11-24 Andrés G. Aragoneses <aaragoneses@novell.com>
|
||||
|
||||
* atk/Makefile.am:
|
||||
|
|
|
@ -413,7 +413,10 @@ namespace GLib {
|
|||
g_value_set_string (ref this, native);
|
||||
GLib.Marshaller.Free (native);
|
||||
} else if (type == GType.Pointer.Val) {
|
||||
if (value is IWrapper) {
|
||||
if (value.GetType () == typeof (IntPtr)) {
|
||||
g_value_set_pointer (ref this, (IntPtr) value);
|
||||
return;
|
||||
} else if (value is IWrapper) {
|
||||
g_value_set_pointer (ref this, ((IWrapper)value).Handle);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue