mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-09 00:13:20 +02:00
2009-05-03 Mike Kestner <mkestner@novell.com>
* glib/Object.cs: revert to old LookupType behavior when Handle is not set. [Fixes #500417] svn path=/trunk/gtk-sharp/; revision=133451
This commit is contained in:
parent
983fb81a96
commit
f11bd79000
@ -1,3 +1,8 @@
|
||||
2009-05-03 Mike Kestner <mkestner@novell.com>
|
||||
|
||||
* glib/Object.cs: revert to old LookupType behavior when Handle is
|
||||
not set. [Fixes #500417]
|
||||
|
||||
2009-05-03 Stephane Delcroix <sdelcroix@novell.com>
|
||||
|
||||
* glib/Idle.cs:
|
||||
|
@ -323,9 +323,13 @@ namespace GLib {
|
||||
|
||||
protected GType LookupGType ()
|
||||
{
|
||||
if (Handle != IntPtr.Zero) {
|
||||
GTypeInstance obj = (GTypeInstance) Marshal.PtrToStructure (Handle, typeof (GTypeInstance));
|
||||
GTypeClass klass = (GTypeClass) Marshal.PtrToStructure (obj.g_class, typeof (GTypeClass));
|
||||
return new GLib.GType (klass.gtype);
|
||||
} else {
|
||||
return LookupGType (GetType ());
|
||||
}
|
||||
}
|
||||
|
||||
protected internal static GType LookupGType (System.Type t)
|
||||
|
Loading…
Reference in New Issue
Block a user