summaryrefslogtreecommitdiff
path: root/girepository
diff options
context:
space:
mode:
authorLucas Rocha <lucasr@gnome.org>2008-10-09 16:44:11 +0000
committerLucas Almeida Rocha <lucasr@src.gnome.org>2008-10-09 16:44:11 +0000
commita3f9cbbe2402acbb4b8a1e6ea88362c2f96b75c2 (patch)
tree44b950a87a63b419b7531ef57d395c759ded674f /girepository
parent9045f204f1f911867c2dae885904f13f83b9ddab (diff)
downloadgobject-introspection-a3f9cbbe2402acbb4b8a1e6ea88362c2f96b75c2.tar.gz
fix regression on invoke test case by making sure we load the global
2008-10-09 Lucas Rocha <lucasr@gnome.org> * girepository/girepository.c (register_internal): fix regression on invoke test case by making sure we load the global module in the typelib when dealing with inline typelibs. * girepository/gtypelib.c: a couple of coding style fixes. svn path=/trunk/; revision=661
Diffstat (limited to 'girepository')
-rw-r--r--girepository/girepository.c3
-rw-r--r--girepository/gtypelib.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/girepository/girepository.c b/girepository/girepository.c
index 15e04355..7cb81f30 100644
--- a/girepository/girepository.c
+++ b/girepository/girepository.c
@@ -252,6 +252,9 @@ register_internal (GIRepository *repository,
g_hash_table_insert (repository->priv->typelibs, key, (void *)typelib);
}
+ if (typelib->modules == NULL)
+ typelib->modules = g_list_append(typelib->modules, g_module_open (NULL, 0));
+
return namespace;
}
diff --git a/girepository/gtypelib.c b/girepository/gtypelib.c
index 34a65e88..df99eb43 100644
--- a/girepository/gtypelib.c
+++ b/girepository/gtypelib.c
@@ -2059,7 +2059,7 @@ g_typelib_free (GTypelib *typelib)
}
const gchar *
-g_typelib_get_namespace(GTypelib *typelib)
+g_typelib_get_namespace (GTypelib *typelib)
{
return g_typelib_get_string (typelib, ((Header *) typelib->data)->namespace);
}
@@ -2074,7 +2074,7 @@ g_typelib_get_namespace(GTypelib *typelib)
* Return value: #TRUE on success
**/
gboolean
-g_typelib_symbol(GTypelib *typelib, const char *symbol_name, gpointer *symbol)
+g_typelib_symbol (GTypelib *typelib, const char *symbol_name, gpointer *symbol)
{
GList *l;