handle the special case for GObject, whose glib:get-type is listed as
authorDan Winship <danw@src.gnome.org>
Mon, 2 Feb 2009 20:41:30 +0000 (20:41 +0000)
committerDan Winship <danw@src.gnome.org>
Mon, 2 Feb 2009 20:41:30 +0000 (20:41 +0000)
* 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

ChangeLog
girepository/ginfo.c

index 3565473..4744556 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-02-02  Dan Winship  <danw@gnome.org>
+
+       * girepository/ginfo.c (g_registered_type_info_get_g_type): handle
+       the special case for GObject, whose glib:get-type is listed as
+       "intern".
+
 2009-02-02  Andreas Rottmann  <a.rottmann@gmx.at>
 
        Bug 569408 – Scanner doesn't handle arbitrary typedefs correctly
index 97aa534..289717d 100644 (file)
@@ -1061,6 +1061,8 @@ g_registered_type_info_get_g_type (GIRegisteredTypeInfo *info)
   
   if (type_init == NULL)
     return G_TYPE_NONE;
+  else if (!strcmp (type_init, "intern"))
+    return G_TYPE_OBJECT;
   
   get_type_func = NULL;
   if (!g_typelib_symbol (((GIBaseInfo*)info)->typelib,