gobject-introspection r483 - in trunk: . girepository



Author: walters
Date: Sun Aug 24 16:55:07 2008
New Revision: 483
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=483&view=rev

Log:
2008-08-24  Colin Walters  <walters verbum org>

	* girepository/girepository.c (g_irepository_require):
	Don't open shared library here; we already do it
	in gtypelib.c.


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

Modified: trunk/girepository/girepository.c
==============================================================================
--- trunk/girepository/girepository.c	(original)
+++ trunk/girepository/girepository.c	Sun Aug 24 16:55:07 2008
@@ -560,32 +560,6 @@
     }
 
   g_free (fname);
-  
-  /* optionally load shared library and attach it to the typelib */
-  shlib = ((Header *) typelib->data)->shared_library;
-  if (shlib)
-    {
-      gchar *resolved_shlib;
-
-      shlib_fname = g_typelib_get_string (typelib, shlib);
-      resolved_shlib = g_module_build_path (NULL, shlib_fname);
-
-      module = g_module_open (resolved_shlib,
-			      G_MODULE_BIND_LAZY|G_MODULE_BIND_LOCAL);
-      if (module == NULL)
-	{
-	  g_set_error (error, G_IREPOSITORY_ERROR,
-		       G_IREPOSITORY_ERROR_TYPELIB_NOT_FOUND,
-		       "Typelib for namespace '%s' references shared library "
-		       "%s, but it could not be openened (%s)",
-		       namespace, resolved_shlib, g_module_error ());
-	  g_free (full_path);
-	  g_free (resolved_shlib);
-	  return NULL;
-	}
-      g_free (resolved_shlib);
-    }
-
   g_hash_table_remove (table, namespace);
   register_internal (repository, full_path, typelib);
   g_free (full_path);



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