mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-17 03:44:53 +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>
|
2009-05-03 Stephane Delcroix <sdelcroix@novell.com>
|
||||||
|
|
||||||
* glib/Idle.cs:
|
* glib/Idle.cs:
|
||||||
@ -32,7 +37,7 @@
|
|||||||
|
|
||||||
* gtk/Widget.custom: Implement signal registration for the
|
* gtk/Widget.custom: Implement signal registration for the
|
||||||
Activate, SettScrollAdjustments and key binding signals
|
Activate, SettScrollAdjustments and key binding signals
|
||||||
in managed code.
|
in managed code.
|
||||||
|
|
||||||
2009-04-25 Mike Kestner <mkestner@novell.com>
|
2009-04-25 Mike Kestner <mkestner@novell.com>
|
||||||
|
|
||||||
|
@ -323,9 +323,13 @@ namespace GLib {
|
|||||||
|
|
||||||
protected GType LookupGType ()
|
protected GType LookupGType ()
|
||||||
{
|
{
|
||||||
GTypeInstance obj = (GTypeInstance) Marshal.PtrToStructure (Handle, typeof (GTypeInstance));
|
if (Handle != IntPtr.Zero) {
|
||||||
GTypeClass klass = (GTypeClass) Marshal.PtrToStructure (obj.g_class, typeof (GTypeClass));
|
GTypeInstance obj = (GTypeInstance) Marshal.PtrToStructure (Handle, typeof (GTypeInstance));
|
||||||
return new GLib.GType (klass.gtype);
|
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)
|
protected internal static GType LookupGType (System.Type t)
|
||||||
|
Loading…
Reference in New Issue
Block a user