]> Pileus Git - ~andy/gtk/commitdiff
Fixes for uninstalled operation with module suffixes other than .so and in
authorOwen Taylor <otaylor@redhat.com>
Sun, 3 Mar 2002 04:16:30 +0000 (04:16 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Sun, 3 Mar 2002 04:16:30 +0000 (04:16 +0000)
Sat Mar  2 23:08:23 2002  Owen Taylor  <otaylor@redhat.com>

        Fixes for uninstalled operation with module suffixes
        other than .so and in general for platforms like AIX where
        the module suffix isn't predictable. (#72185, problems
        reported by Miroslaw Dobrzanski-Neumann)

        * modules/input/Makefile.am (gtk.immodules): Query .la
        files rather than shared objects in .libs when creating the
        uninstalled gtk.immodules file.

        * gtk/gtkmain.c (_gtk_find_module): Look for .la files
        after looking for the normal soname extension to handle
        cases where the soname extension isn't predictable,
        like AIX.

        * gtk/gtkthemes.c (gtk_theme_engine_load): Don't
        call g_module_build_path... leave that to
        gtk_rc_find_module_in_path.

        * demos/gtk-demo/main.c (main) demos/pixbuf-init.c (pixbuf_init):
        tests/testgtk.c (test_init): tests/testtext.c (test_init)
        tests/testdnd.c (test_init): Point gdk-pixbuf to .la
        files rather than poking in .libs for .so files.

        * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Remove
        .libs from GDK_PIXBUF_MODULEDIR.

16 files changed:
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
demos/gtk-demo/main.c
demos/pixbuf-init.c
gtk/gtkmain.c
gtk/gtkthemes.c
gtk/stock-icons/Makefile.am
modules/input/Makefile.am
tests/testdnd.c
tests/testgtk.c
tests/testtext.c

index 9f113fade3dceb86bae991393e4534918dd38c1b..c2ec102800bac88b7bd1690e45391bf2ce617b4f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,9 +1,40 @@
+Sat Mar  2 23:08:23 2002  Owen Taylor  <otaylor@redhat.com>
+
+       Fixes for uninstalled operation with module suffixes
+       other than .so and in general for platforms like AIX where
+       the module suffix isn't predictable. (#72185, problems
+       reported by Miroslaw Dobrzanski-Neumann)
+
+       * modules/input/Makefile.am (gtk.immodules): Query .la
+       files rather than shared objects in .libs when creating the
+       uninstalled gtk.immodules file.
+
+       * gtk/gtkmain.c (_gtk_find_module): Look for .la files
+       after looking for the normal soname extension to handle
+       cases where the soname extension isn't predictable,
+       like AIX.
+
+       * gtk/gtkthemes.c (gtk_theme_engine_load): Don't
+       call g_module_build_path... leave that to 
+       gtk_rc_find_module_in_path.
+
+       * demos/gtk-demo/main.c (main) demos/pixbuf-init.c (pixbuf_init):
+       tests/testgtk.c (test_init): tests/testtext.c (test_init)
+       tests/testdnd.c (test_init): Point gdk-pixbuf to .la
+       files rather than poking in .libs for .so files.
+
+       * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Remove
+       .libs from GDK_PIXBUF_MODULEDIR.
+
 Sat Mar  2 20:58:30 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkwidget.c (gtk_widget_reparent): Handle NO_WINDOW
        widgets with windows that are children of widget->window.
        (#50279)
 
+       * tests/testgtk.c: Add eventboxes to the example so that
+       we are reparenting between different GdkWindows.
+
 Sat Mar  2 20:39:38 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock): 
index 9f113fade3dceb86bae991393e4534918dd38c1b..c2ec102800bac88b7bd1690e45391bf2ce617b4f 100644 (file)
@@ -1,9 +1,40 @@
+Sat Mar  2 23:08:23 2002  Owen Taylor  <otaylor@redhat.com>
+
+       Fixes for uninstalled operation with module suffixes
+       other than .so and in general for platforms like AIX where
+       the module suffix isn't predictable. (#72185, problems
+       reported by Miroslaw Dobrzanski-Neumann)
+
+       * modules/input/Makefile.am (gtk.immodules): Query .la
+       files rather than shared objects in .libs when creating the
+       uninstalled gtk.immodules file.
+
+       * gtk/gtkmain.c (_gtk_find_module): Look for .la files
+       after looking for the normal soname extension to handle
+       cases where the soname extension isn't predictable,
+       like AIX.
+
+       * gtk/gtkthemes.c (gtk_theme_engine_load): Don't
+       call g_module_build_path... leave that to 
+       gtk_rc_find_module_in_path.
+
+       * demos/gtk-demo/main.c (main) demos/pixbuf-init.c (pixbuf_init):
+       tests/testgtk.c (test_init): tests/testtext.c (test_init)
+       tests/testdnd.c (test_init): Point gdk-pixbuf to .la
+       files rather than poking in .libs for .so files.
+
+       * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Remove
+       .libs from GDK_PIXBUF_MODULEDIR.
+
 Sat Mar  2 20:58:30 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkwidget.c (gtk_widget_reparent): Handle NO_WINDOW
        widgets with windows that are children of widget->window.
        (#50279)
 
+       * tests/testgtk.c: Add eventboxes to the example so that
+       we are reparenting between different GdkWindows.
+
 Sat Mar  2 20:39:38 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock): 
index 9f113fade3dceb86bae991393e4534918dd38c1b..c2ec102800bac88b7bd1690e45391bf2ce617b4f 100644 (file)
@@ -1,9 +1,40 @@
+Sat Mar  2 23:08:23 2002  Owen Taylor  <otaylor@redhat.com>
+
+       Fixes for uninstalled operation with module suffixes
+       other than .so and in general for platforms like AIX where
+       the module suffix isn't predictable. (#72185, problems
+       reported by Miroslaw Dobrzanski-Neumann)
+
+       * modules/input/Makefile.am (gtk.immodules): Query .la
+       files rather than shared objects in .libs when creating the
+       uninstalled gtk.immodules file.
+
+       * gtk/gtkmain.c (_gtk_find_module): Look for .la files
+       after looking for the normal soname extension to handle
+       cases where the soname extension isn't predictable,
+       like AIX.
+
+       * gtk/gtkthemes.c (gtk_theme_engine_load): Don't
+       call g_module_build_path... leave that to 
+       gtk_rc_find_module_in_path.
+
+       * demos/gtk-demo/main.c (main) demos/pixbuf-init.c (pixbuf_init):
+       tests/testgtk.c (test_init): tests/testtext.c (test_init)
+       tests/testdnd.c (test_init): Point gdk-pixbuf to .la
+       files rather than poking in .libs for .so files.
+
+       * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Remove
+       .libs from GDK_PIXBUF_MODULEDIR.
+
 Sat Mar  2 20:58:30 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkwidget.c (gtk_widget_reparent): Handle NO_WINDOW
        widgets with windows that are children of widget->window.
        (#50279)
 
+       * tests/testgtk.c: Add eventboxes to the example so that
+       we are reparenting between different GdkWindows.
+
 Sat Mar  2 20:39:38 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock): 
index 9f113fade3dceb86bae991393e4534918dd38c1b..c2ec102800bac88b7bd1690e45391bf2ce617b4f 100644 (file)
@@ -1,9 +1,40 @@
+Sat Mar  2 23:08:23 2002  Owen Taylor  <otaylor@redhat.com>
+
+       Fixes for uninstalled operation with module suffixes
+       other than .so and in general for platforms like AIX where
+       the module suffix isn't predictable. (#72185, problems
+       reported by Miroslaw Dobrzanski-Neumann)
+
+       * modules/input/Makefile.am (gtk.immodules): Query .la
+       files rather than shared objects in .libs when creating the
+       uninstalled gtk.immodules file.
+
+       * gtk/gtkmain.c (_gtk_find_module): Look for .la files
+       after looking for the normal soname extension to handle
+       cases where the soname extension isn't predictable,
+       like AIX.
+
+       * gtk/gtkthemes.c (gtk_theme_engine_load): Don't
+       call g_module_build_path... leave that to 
+       gtk_rc_find_module_in_path.
+
+       * demos/gtk-demo/main.c (main) demos/pixbuf-init.c (pixbuf_init):
+       tests/testgtk.c (test_init): tests/testtext.c (test_init)
+       tests/testdnd.c (test_init): Point gdk-pixbuf to .la
+       files rather than poking in .libs for .so files.
+
+       * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Remove
+       .libs from GDK_PIXBUF_MODULEDIR.
+
 Sat Mar  2 20:58:30 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkwidget.c (gtk_widget_reparent): Handle NO_WINDOW
        widgets with windows that are children of widget->window.
        (#50279)
 
+       * tests/testgtk.c: Add eventboxes to the example so that
+       we are reparenting between different GdkWindows.
+
 Sat Mar  2 20:39:38 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock): 
index 9f113fade3dceb86bae991393e4534918dd38c1b..c2ec102800bac88b7bd1690e45391bf2ce617b4f 100644 (file)
@@ -1,9 +1,40 @@
+Sat Mar  2 23:08:23 2002  Owen Taylor  <otaylor@redhat.com>
+
+       Fixes for uninstalled operation with module suffixes
+       other than .so and in general for platforms like AIX where
+       the module suffix isn't predictable. (#72185, problems
+       reported by Miroslaw Dobrzanski-Neumann)
+
+       * modules/input/Makefile.am (gtk.immodules): Query .la
+       files rather than shared objects in .libs when creating the
+       uninstalled gtk.immodules file.
+
+       * gtk/gtkmain.c (_gtk_find_module): Look for .la files
+       after looking for the normal soname extension to handle
+       cases where the soname extension isn't predictable,
+       like AIX.
+
+       * gtk/gtkthemes.c (gtk_theme_engine_load): Don't
+       call g_module_build_path... leave that to 
+       gtk_rc_find_module_in_path.
+
+       * demos/gtk-demo/main.c (main) demos/pixbuf-init.c (pixbuf_init):
+       tests/testgtk.c (test_init): tests/testtext.c (test_init)
+       tests/testdnd.c (test_init): Point gdk-pixbuf to .la
+       files rather than poking in .libs for .so files.
+
+       * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Remove
+       .libs from GDK_PIXBUF_MODULEDIR.
+
 Sat Mar  2 20:58:30 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkwidget.c (gtk_widget_reparent): Handle NO_WINDOW
        widgets with windows that are children of widget->window.
        (#50279)
 
+       * tests/testgtk.c: Add eventboxes to the example so that
+       we are reparenting between different GdkWindows.
+
 Sat Mar  2 20:39:38 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock): 
index 9f113fade3dceb86bae991393e4534918dd38c1b..c2ec102800bac88b7bd1690e45391bf2ce617b4f 100644 (file)
@@ -1,9 +1,40 @@
+Sat Mar  2 23:08:23 2002  Owen Taylor  <otaylor@redhat.com>
+
+       Fixes for uninstalled operation with module suffixes
+       other than .so and in general for platforms like AIX where
+       the module suffix isn't predictable. (#72185, problems
+       reported by Miroslaw Dobrzanski-Neumann)
+
+       * modules/input/Makefile.am (gtk.immodules): Query .la
+       files rather than shared objects in .libs when creating the
+       uninstalled gtk.immodules file.
+
+       * gtk/gtkmain.c (_gtk_find_module): Look for .la files
+       after looking for the normal soname extension to handle
+       cases where the soname extension isn't predictable,
+       like AIX.
+
+       * gtk/gtkthemes.c (gtk_theme_engine_load): Don't
+       call g_module_build_path... leave that to 
+       gtk_rc_find_module_in_path.
+
+       * demos/gtk-demo/main.c (main) demos/pixbuf-init.c (pixbuf_init):
+       tests/testgtk.c (test_init): tests/testtext.c (test_init)
+       tests/testdnd.c (test_init): Point gdk-pixbuf to .la
+       files rather than poking in .libs for .so files.
+
+       * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Remove
+       .libs from GDK_PIXBUF_MODULEDIR.
+
 Sat Mar  2 20:58:30 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkwidget.c (gtk_widget_reparent): Handle NO_WINDOW
        widgets with windows that are children of widget->window.
        (#50279)
 
+       * tests/testgtk.c: Add eventboxes to the example so that
+       we are reparenting between different GdkWindows.
+
 Sat Mar  2 20:39:38 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock): 
index 9f113fade3dceb86bae991393e4534918dd38c1b..c2ec102800bac88b7bd1690e45391bf2ce617b4f 100644 (file)
@@ -1,9 +1,40 @@
+Sat Mar  2 23:08:23 2002  Owen Taylor  <otaylor@redhat.com>
+
+       Fixes for uninstalled operation with module suffixes
+       other than .so and in general for platforms like AIX where
+       the module suffix isn't predictable. (#72185, problems
+       reported by Miroslaw Dobrzanski-Neumann)
+
+       * modules/input/Makefile.am (gtk.immodules): Query .la
+       files rather than shared objects in .libs when creating the
+       uninstalled gtk.immodules file.
+
+       * gtk/gtkmain.c (_gtk_find_module): Look for .la files
+       after looking for the normal soname extension to handle
+       cases where the soname extension isn't predictable,
+       like AIX.
+
+       * gtk/gtkthemes.c (gtk_theme_engine_load): Don't
+       call g_module_build_path... leave that to 
+       gtk_rc_find_module_in_path.
+
+       * demos/gtk-demo/main.c (main) demos/pixbuf-init.c (pixbuf_init):
+       tests/testgtk.c (test_init): tests/testtext.c (test_init)
+       tests/testdnd.c (test_init): Point gdk-pixbuf to .la
+       files rather than poking in .libs for .so files.
+
+       * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Remove
+       .libs from GDK_PIXBUF_MODULEDIR.
+
 Sat Mar  2 20:58:30 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkwidget.c (gtk_widget_reparent): Handle NO_WINDOW
        widgets with windows that are children of widget->window.
        (#50279)
 
+       * tests/testgtk.c: Add eventboxes to the example so that
+       we are reparenting between different GdkWindows.
+
 Sat Mar  2 20:39:38 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock): 
index 6f1a4abe180b6acc268a4f938e006a7113643539..d96cc9fb0adba9cb01e43927a21b66c963929407 100644 (file)
@@ -808,10 +808,10 @@ main (int argc, char **argv)
    * these few lines, which are just a hack so gtk-demo will work
    * in the GTK tree without installing it.
    */
-  if (g_file_test ("../../gdk-pixbuf/.libs/libpixbufloader-pnm.so",
+  if (g_file_test ("../../gdk-pixbuf/libpixbufloader-pnm.la",
                    G_FILE_TEST_EXISTS))
     {
-      putenv ("GDK_PIXBUF_MODULEDIR=../../gdk-pixbuf/.libs");
+      putenv ("GDK_PIXBUF_MODULEDIR=../../gdk-pixbuf");
       putenv ("GTK_IM_MODULE_FILE=../../modules/input/gtk.immodules");
     }
   /* -- End of hack -- */
index 3d4edee090a92c5320bf47450727b43c9d4c5c6f..a8803e5f82e352fd6d046fd705d0b2eefd781154 100644 (file)
@@ -14,6 +14,6 @@ file_exists (const char *filename)
 void
 pixbuf_init ()
 {
-  if (file_exists ("../gdk-pixbuf/.libs/libpixbufloader-pnm.so"))
-    putenv ("GDK_PIXBUF_MODULEDIR=../gdk-pixbuf/.libs");
+  if (file_exists ("../gdk-pixbuf/libpixbufloader-pnm.la"))
+    putenv ("GDK_PIXBUF_MODULEDIR=../gdk-pixbuf");
 }
index 666f21254c52cdc7d298295b18b85eb9a05a30b5..ad5021bd75088572d69061c06b67185b32a06559 100644 (file)
@@ -377,6 +377,31 @@ _gtk_get_module_path (const gchar *type)
   return result;
 }
 
+/* Like g_module_path, but use .la as the suffix
+ */
+static gchar*
+module_build_la_path (const gchar *directory,
+                     const gchar *module_name)
+{
+       gchar *filename;
+       gchar *result;
+       
+       if (strncmp (module_name, "lib", 3) == 0)
+               filename = (gchar *)module_name;
+       else
+               filename =  g_strconcat ("lib", module_name, ".la", NULL);
+
+       if (directory && *directory)
+               result = g_build_filename (directory, filename, NULL);
+       else
+               result = g_strdup (filename);
+
+       if (filename != module_name)
+               g_free (filename);
+
+       return result;
+}
+
 /**
  * _gtk_find_module:
  * @name: the name of the module
@@ -402,15 +427,23 @@ _gtk_find_module (const gchar *name,
   paths = _gtk_get_module_path (type);
   for (path = paths; *path; path++)
     {
-      gchar *tmp_name = g_module_build_path (*path, name);
-           
+      gchar *tmp_name;
+
+      tmp_name = g_module_build_path (*path, name);
       if (g_file_test (tmp_name, G_FILE_TEST_EXISTS))
        {
          module_name = tmp_name;
          goto found;
        }
-      else
-       g_free(tmp_name);
+      g_free(tmp_name);
+
+      tmp_name = module_build_la_path (*path, name);
+      if (g_file_test (tmp_name, G_FILE_TEST_EXISTS))
+       {
+         module_name = tmp_name;
+         goto found;
+       }
+      g_free(tmp_name);
     }
 
   g_strfreev (paths);
index 6bb3e7e636f6ec654960f0056bc77b4563cee704..b17668eb8a1f83f27b2ec6b1e8e9d8c5d17a2c5e 100644 (file)
@@ -60,23 +60,17 @@ gtk_theme_engine_load (GTypeModule *module)
 {
   GtkThemeEngine *engine = GTK_THEME_ENGINE (module);
   
-  gchar *fullname;
   gchar *engine_path;
       
-  fullname = g_module_build_path (NULL, engine->name);
-  engine_path = gtk_rc_find_module_in_path (fullname);
+  engine_path = gtk_rc_find_module_in_path (engine->name);
   
   if (!engine_path)
     {
       g_warning (_("Unable to locate theme engine in module_path: \"%s\","),
-                fullname);
-      
-      g_free (fullname);
+                engine->name);
       return FALSE;
     }
     
-  g_free (fullname);
-       
   /* load the lib */
   
   GTK_NOTE (MISC, g_message ("Loading Theme %s\n", engine_path));
index 8ed1b3ba14d200a90a6d4338359e0a3857d0c84e..abc3c321334c92ecc11f5bd24be36334e14b8d64 100644 (file)
@@ -254,17 +254,17 @@ CLEANFILES = $(noinst_DATA)
 pixbuf_dir = $(top_builddir)/gdk-pixbuf
 
 gtkstockpixbufs.h: $(pixbuf_dir)/gdk-pixbuf-csource $(IMAGES)
-       GDK_PIXBUF_MODULEDIR=$(pixbuf_dir)/.libs \
+       GDK_PIXBUF_MODULEDIR=$(pixbuf_dir) \
           $(pixbuf_dir)/gdk-pixbuf-csource --raw --build-list $(VARIABLES1) >$(srcdir)/gtkstockpixbufs.h
-       GDK_PIXBUF_MODULEDIR=$(pixbuf_dir)/.libs \
+       GDK_PIXBUF_MODULEDIR=$(pixbuf_dir) \
           $(pixbuf_dir)/gdk-pixbuf-csource --raw --build-list $(VARIABLES2) >>$(srcdir)/gtkstockpixbufs.h
-       GDK_PIXBUF_MODULEDIR=$(pixbuf_dir)/.libs \
+       GDK_PIXBUF_MODULEDIR=$(pixbuf_dir) \
           $(pixbuf_dir)/gdk-pixbuf-csource --raw --build-list $(VARIABLES3) >>$(srcdir)/gtkstockpixbufs.h
-       GDK_PIXBUF_MODULEDIR=$(pixbuf_dir)/.libs \
+       GDK_PIXBUF_MODULEDIR=$(pixbuf_dir) \
           $(pixbuf_dir)/gdk-pixbuf-csource --raw --build-list $(VARIABLES4) >>$(srcdir)/gtkstockpixbufs.h
-       GDK_PIXBUF_MODULEDIR=$(pixbuf_dir)/.libs \
+       GDK_PIXBUF_MODULEDIR=$(pixbuf_dir) \
           $(pixbuf_dir)/gdk-pixbuf-csource --raw --build-list $(VARIABLES5) >>$(srcdir)/gtkstockpixbufs.h
-       GDK_PIXBUF_MODULEDIR=$(pixbuf_dir)/.libs \
+       GDK_PIXBUF_MODULEDIR=$(pixbuf_dir) \
           $(pixbuf_dir)/gdk-pixbuf-csource --raw --build-list $(VARIABLES6) >>$(srcdir)/gtkstockpixbufs.h
 
 EXTRA_DIST = $(IMAGES) gtkstockpixbufs.h
index 6ea0affd640520dd5edd6459cadfc586e6b6554b..97578c5ea31cec9f6040eb7582c780028f32f4ec 100644 (file)
@@ -2,9 +2,6 @@
 
 if PLATFORM_WIN32
 no_undefined = -no-undefined
-SOSUFFIX=dll
-else
-SOSUFFIX=so
 endif
 
 INCLUDES = @STRIP_BEGIN@ \
@@ -98,6 +95,6 @@ module_LTLIBRARIES =                          \
        im-viqr.la
 
 gtk.immodules: Makefile.am $(module_LTLIBRARIES)
-       $(top_builddir)/gtk/gtk-query-immodules-2.0 .libs/*.$(SOSUFFIX) > gtk.immodules
+       $(top_builddir)/gtk/gtk-query-immodules-2.0 *.la > gtk.immodules
 
 all-local: gtk.immodules
index cbc1bfb58ed053d159f0d86ed61f012c161468e5..9ac1baec07ffb3231456a7a754f2e4730e5a10b9 100644 (file)
@@ -555,10 +555,10 @@ source_drag_data_delete  (GtkWidget          *widget,
 void
 test_init ()
 {
-  if (g_file_test ("../gdk-pixbuf/.libs/libpixbufloader-pnm.so",
+  if (g_file_test ("../gdk-pixbuf/libpixbufloader-pnm.la",
                   G_FILE_TEST_EXISTS))
     {
-      putenv ("GDK_PIXBUF_MODULEDIR=../gdk-pixbuf/.libs");
+      putenv ("GDK_PIXBUF_MODULEDIR=../gdk-pixbuf/");
       putenv ("GTK_IM_MODULE_FILE=./gtk.immodules");
     }
 }
index 888860f10e33c8aa5a4e31a8890a07ff338c129f..aa032bb00e7e2b6787ac051d2ce23a12c0ddab95 100644 (file)
@@ -11592,9 +11592,9 @@ create_main_window (void)
 static void
 test_init ()
 {
-  if (file_exists ("../gdk-pixbuf/.libs/libpixbufloader-pnm.so"))
+  if (file_exists ("../gdk-pixbuf/libpixbufloader-pnm.la"))
     {
-      putenv ("GDK_PIXBUF_MODULEDIR=../gdk-pixbuf/.libs");
+      putenv ("GDK_PIXBUF_MODULEDIR=../gdk-pixbuf");
       putenv ("GTK_IM_MODULE_FILE=../modules/input/gtk.immodules");
     }
 }
index e9c67dc22db5cff14bb25b95ea28a497fdb610bc..efef058602b0d48408700c641ac7960bd6eeaaf8 100644 (file)
@@ -2536,7 +2536,7 @@ file_exists (const char *filename)
 void
 test_init ()
 {
-  if (file_exists ("../gdk-pixbuf/.libs/libpixbufloader-pnm.so"))
+  if (file_exists ("../gdk-pixbuf/libpixbufloader-pnm.la"))
     {
       putenv ("GDK_PIXBUF_MODULEDIR=../gdk-pixbuf/.libs");
       putenv ("GTK_IM_MODULE_FILE=../modules/input/gtk.immodules");