[gegl] gegl: Properly build module_path for win32



commit d9023a0a88215475e1a1b63f9ffb1f0463f34378
Author: Martin Nordholts <martinn src gnome org>
Date:   Tue Aug 4 21:51:26 2009 +0200

    gegl: Properly build module_path for win32
    
    Don't use deprecated API when building module_path on win32, and
    construct a dir path, not a path to the GEGL dll. This might fix
    bug 589667.

 gegl/gegl-init.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/gegl/gegl-init.c b/gegl/gegl-init.c
index 89542bf..81b50ad 100644
--- a/gegl/gegl-init.c
+++ b/gegl/gegl-init.c
@@ -502,10 +502,11 @@ gegl_post_parse_hook (GOptionContext *context,
           gchar *module_path;
 
 #ifdef G_OS_WIN32
-          module_path =
-            g_win32_get_package_installation_subdirectory (NULL,
-                                                           "lib" GEGL_LIBRARY "-0.dll",
-                                                           "lib/" GEGL_LIBRARY);
+          {
+            gchar *prefix = g_win32_get_package_installation_directory_of_module (NULL);
+            module_path = g_build_filename (prefix, "lib", GEGL_LIBRARY, NULL);
+            g_free (prefix);
+          }
 #else
           module_path = g_build_filename (LIBDIR, GEGL_LIBRARY, NULL);
 #endif



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