1
Index: b/gtk/gtkimmodule.c
2
===================================================================
3
--- a/gtk/gtkimmodule.c 2010-04-10 14:52:09.765946296 +0200
4
+++ b/gtk/gtkimmodule.c 2010-04-10 14:52:10.681942580 +0200
11
#include <glib/gstdio.h>
18
+#if defined(__linux__) && defined (__i386__)
19
+ gchar *compat_im_module_files_d_str = g_build_filename ("/usr/lib32/gtk-2.0",
23
+#elif defined(__linux__) && ( defined (__x86_64__) || defined(__ia64__) )
24
+ gchar *compat_im_module_files_d_str = g_build_filename ("/usr/lib64/gtk-2.0",
33
+#if defined(__linux__) && ( defined(__i386__) || defined (__x86_64__) || defined(__ia64__) )
34
+ /* prefer compat_im_module_files_d_str over im_module_files_d_str on the
35
+ * above arches if it's usable */
36
+ if (! g_access(compat_im_module_files_d_str, R_OK|X_OK))
37
+ list_str = g_strjoin (G_SEARCHPATH_SEPARATOR_S,
38
+ compat_im_module_files_d_str,
41
+ else /* continued below */
44
list_str = g_strjoin (G_SEARCHPATH_SEPARATOR_S,
45
im_module_files_d_str,
50
+#if defined(__linux__) && ( defined(__i386__) || defined (__x86_64__) || defined(__ia64__) )
51
+ g_free (compat_im_module_files_d_str);
53
g_free (im_module_files_d_str);
54
g_free (im_module_file_str);
56
Index: b/gdk-pixbuf/gdk-pixbuf-io.c
57
===================================================================
58
--- a/gdk-pixbuf/gdk-pixbuf-io.c 2010-04-10 14:52:10.065944562 +0200
59
+++ b/gdk-pixbuf/gdk-pixbuf-io.c 2010-04-10 14:52:10.685945884 +0200
63
gchar *gdkpixbuf_module_file_str = gdk_pixbuf_get_module_file ();
65
+#if defined(__linux__) && defined (__i386__)
66
+ gchar *compat_gdkpixbuf_module_files_d_str = g_build_filename ("/usr/lib32/gtk-2.0",
70
+#elif defined(__linux__) && ( defined (__x86_64__) || defined(__ia64__) )
71
+ gchar *compat_gdkpixbuf_module_files_d_str = g_build_filename ("/usr/lib64/gtk-2.0",
80
#undef load_one_builtin_module
84
+#if defined(__linux__) && ( defined(__i386__) || defined (__x86_64__) || defined(__ia64__) )
85
+ /* prefer compat_gdkpixbuf_module_files_d_str over PIXBUF_FILES_LIBDIR
86
+ * on the above arches if it's usable */
87
+ if (! g_access(compat_gdkpixbuf_module_files_d_str, R_OK|X_OK))
88
+ list_str = g_strjoin (G_SEARCHPATH_SEPARATOR_S,
89
+ gdkpixbuf_module_file_str,
90
+ compat_gdkpixbuf_module_files_d_str,
92
+ else /* continued below */
95
list_str = g_strjoin (G_SEARCHPATH_SEPARATOR_S,
96
gdkpixbuf_module_file_str,
102
+#if defined(__linux__) && ( defined(__i386__) || defined (__x86_64__) || defined(__ia64__) )
104
+ g_free (compat_gdkpixbuf_module_files_d_str);
107
g_free (gdkpixbuf_module_file_str);