From 7d75adf68ccf1ca61db0edb63b20a146ce4aac79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20G=2E=20Aragoneses?= Date: Thu, 10 Oct 2013 20:25:23 +0200 Subject: [PATCH] glib: fix FindClassProperty()'s copy-paste error The implementation of FindClassProperty() was the same as the implementation of FindInterfaceProperty(), both receiving an iface instead of a GObjectClass* [1]. The reason of this oversight can well be explained by the fact that FindClassProperty() is private and not used, actually. However, we may need it soonish as a good bind to g_object_class_find_property. [1] https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-class-find-property --- glib/Object.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glib/Object.cs b/glib/Object.cs index 45d965707..9c17ca309 100644 --- a/glib/Object.cs +++ b/glib/Object.cs @@ -451,9 +451,9 @@ namespace GLib { static IntPtr FindClassProperty (GType type, string name) { - IntPtr g_iface = type.GetDefaultInterfacePtr (); + IntPtr g_class = type.GetClassPtr (); IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name); - return g_object_class_find_property (g_iface, native_name); + return g_object_class_find_property (g_class, native_name); } [DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)]