mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-18 14:48:53 +02:00
handle the special case for GObject, whose glib:get-type is listed as
* girepository/ginfo.c (g_registered_type_info_get_g_type): handle the special case for GObject, whose glib:get-type is listed as "intern". svn path=/trunk/; revision=1080
This commit is contained in:
2
ginfo.c
2
ginfo.c
@@ -1061,6 +1061,8 @@ g_registered_type_info_get_g_type (GIRegisteredTypeInfo *info)
|
|||||||
|
|
||||||
if (type_init == NULL)
|
if (type_init == NULL)
|
||||||
return G_TYPE_NONE;
|
return G_TYPE_NONE;
|
||||||
|
else if (!strcmp (type_init, "intern"))
|
||||||
|
return G_TYPE_OBJECT;
|
||||||
|
|
||||||
get_type_func = NULL;
|
get_type_func = NULL;
|
||||||
if (!g_typelib_symbol (((GIBaseInfo*)info)->typelib,
|
if (!g_typelib_symbol (((GIBaseInfo*)info)->typelib,
|
||||||
|
Reference in New Issue
Block a user