mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 22:46:15 +01:00
Make object_interface_check_properties work
As pointed out in bug 637738, it does not currently work, since g_type_class_peek always returns NULL.
This commit is contained in:
parent
2a5e0cf9e0
commit
068d53358b
@ -1189,11 +1189,13 @@ object_interface_check_properties (gpointer func_data,
|
|||||||
gpointer g_iface)
|
gpointer g_iface)
|
||||||
{
|
{
|
||||||
GTypeInterface *iface_class = g_iface;
|
GTypeInterface *iface_class = g_iface;
|
||||||
GObjectClass *class = g_type_class_peek (iface_class->g_instance_type);
|
GObjectClass *class;
|
||||||
GType iface_type = iface_class->g_type;
|
GType iface_type = iface_class->g_type;
|
||||||
GParamSpec **pspecs;
|
GParamSpec **pspecs;
|
||||||
guint n;
|
guint n;
|
||||||
|
|
||||||
|
class = g_type_class_ref (iface_class->g_instance_type);
|
||||||
|
|
||||||
if (!G_IS_OBJECT_CLASS (class))
|
if (!G_IS_OBJECT_CLASS (class))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -1263,6 +1265,8 @@ object_interface_check_properties (gpointer func_data,
|
|||||||
}
|
}
|
||||||
|
|
||||||
g_free (pspecs);
|
g_free (pspecs);
|
||||||
|
|
||||||
|
g_type_class_unref (class);
|
||||||
}
|
}
|
||||||
|
|
||||||
GType
|
GType
|
||||||
|
Loading…
Reference in New Issue
Block a user