gegl r2009 - in trunk: . gegl



Author: neo
Date: Tue Feb 12 16:45:38 2008
New Revision: 2009
URL: http://svn.gnome.org/viewvc/gegl?rev=2009&view=rev

Log:
2008-02-12  Sven Neumann  <sven gimp org>

        * gegl/gegl-init.c (gegl_post_parse_hook): minor code cleanup.


Modified:
   trunk/ChangeLog
   trunk/gegl/gegl-init.c

Modified: trunk/gegl/gegl-init.c
==============================================================================
--- trunk/gegl/gegl-init.c	(original)
+++ trunk/gegl/gegl-init.c	Tue Feb 12 16:45:38 2008
@@ -222,10 +222,8 @@
   time = gegl_ticks ();
   if (!module_db)
     {
-      gchar *load_inhibit = g_strdup ("");
       gchar *module_path;
 
-
       if (g_getenv ("GEGL_PATH"))
         {
           module_path = g_strdup (g_getenv ("GEGL_PATH"));
@@ -233,19 +231,20 @@
       else
         {
 #ifdef G_OS_WIN32
-          module_path = g_win32_get_package_installation_subdirectory (NULL, "lib" GEGL_LIBRARY "-0.dll", "lib/" GEGL_LIBRARY);
+          module_path =
+            g_win32_get_package_installation_subdirectory (NULL,
+                                                           "lib" GEGL_LIBRARY "-0.dll",
+                                                           "lib/" GEGL_LIBRARY);
 #else
-          module_path = g_strdup (LIBDIR "/" GEGL_LIBRARY);
+          module_path = g_build_filename (LIBDIR, GEGL_LIBRARY, NULL);
 #endif
         }
 
       module_db = gegl_module_db_new (FALSE);
 
-      gegl_module_db_set_load_inhibit (module_db, load_inhibit);
       gegl_module_db_load (module_db, module_path);
 
       g_free (module_path);
-      g_free (load_inhibit);
 
       gegl_instrument ("gegl_init", "load modules", gegl_ticks () - time);
     }



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