gobject-introspection r661 - in trunk: . girepository



Author: lucasr
Date: Thu Oct  9 16:44:11 2008
New Revision: 661
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=661&view=rev

Log:
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.


Modified:
   trunk/ChangeLog
   trunk/girepository/girepository.c
   trunk/girepository/gtypelib.c

Modified: trunk/girepository/girepository.c
==============================================================================
--- trunk/girepository/girepository.c	(original)
+++ trunk/girepository/girepository.c	Thu Oct  9 16:44:11 2008
@@ -252,6 +252,9 @@
       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;
 }
 

Modified: trunk/girepository/gtypelib.c
==============================================================================
--- trunk/girepository/gtypelib.c	(original)
+++ trunk/girepository/gtypelib.c	Thu Oct  9 16:44:11 2008
@@ -2059,7 +2059,7 @@
 }
 
 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 @@
  * 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;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]