| Newsgroups |
gmane.comp.gnome.mono.patches |
| Message-ID |
<00000141a6d3cdec-54f26e31-ac57-4d7c-ad3f-516cb2e3f33d-000000@email.amazonses.com> |
Branch: refs/heads/master
Home: https://github.com/mono/gtk-sharp
Compare: https://github.com/mono/gtk-sharp/compare/9b9512a3cea6...c83c19615043
Commit: f978c8f7053becd5f8798b51727a977f520214fb
Author: Stephan Sundermann <[email protected]> (xDarkice)
Date: 2013-10-11 09:13:08 GMT
URL: https://github.com/mono/gtk-sharp/commit/f978c8f7053becd5f8798b51727a977f520214fb
GLib.Object: Fixed FindClassProperty
g_object_class_find_property takes a GObjectClass which can be retrieved by
reading an IntPtr from the GObject's Handle
Changed paths:
M glib/Object.cs
Modified: glib/Object.cs
===================================================================
@@ -449,11 +449,11 @@ public static void OverrideProperty (IntPtr declaring_class, string name)
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr g_object_class_find_property (IntPtr klass, IntPtr name);
- static IntPtr FindClassProperty (GType type, string name)
+ static IntPtr FindClassProperty (GLib.Object o, string name)
{
- IntPtr g_class = type.GetClassPtr ();
+ IntPtr gobjectclass = Marshal.ReadIntPtr (o.Handle);
IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
- return g_object_class_find_property (g_class, native_name);
+ return g_object_class_find_property (gobjectclass, native_name);
}
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
Commit: c83c19615043898abab9b578f38371658e4b36c0
Author: Bertrand Lorentz <[email protected]> (bl8)
Date: 2013-10-11 09:21:18 GMT
URL: https://github.com/mono/gtk-sharp/commit/c83c19615043898abab9b578f38371658e4b36c0
Merge pull request #73 from xDarkice/master
GLib.Object: Fix FindClassProperty method
Changed paths:
M glib/Object.cs
Modified: glib/Object.cs
===================================================================
@@ -449,11 +449,11 @@ public static void OverrideProperty (IntPtr declaring_class, string name)
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr g_object_class_find_property (IntPtr klass, IntPtr name);
- static IntPtr FindClassProperty (GType type, string name)
+ static IntPtr FindClassProperty (GLib.Object o, string name)
{
- IntPtr g_class = type.GetClassPtr ();
+ IntPtr gobjectclass = Marshal.ReadIntPtr (o.Handle);
IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
- return g_object_class_find_property (g_class, native_name);
+ return g_object_class_find_property (gobjectclass, native_name);
}
[DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches