summaryrefslogtreecommitdiff
path: root/gtk-lib64.patch
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@fedoraproject.org>2010-05-26 03:26:26 +0000
committerMatthias Clasen <mclasen@fedoraproject.org>2010-05-26 03:26:26 +0000
commit7442cc31a2bab957923f68cc2b259563631e5190 (patch)
tree5bebd0f848245653d65d3f59182a67d7add0b757 /gtk-lib64.patch
parentSetup of module gtk3 (diff)
downloadgtk3-classic-build-gtk3-7442cc31a2bab957923f68cc2b259563631e5190.tar.gz
gtk3-classic-build-gtk3-7442cc31a2bab957923f68cc2b259563631e5190.tar.bz2
gtk3-classic-build-gtk3-7442cc31a2bab957923f68cc2b259563631e5190.zip
initial import
Diffstat (limited to 'gtk-lib64.patch')
-rw-r--r--gtk-lib64.patch66
1 files changed, 66 insertions, 0 deletions
diff --git a/gtk-lib64.patch b/gtk-lib64.patch
new file mode 100644
index 0000000..90aa223
--- /dev/null
+++ b/gtk-lib64.patch
@@ -0,0 +1,66 @@
+diff -up gtk+-2.19.1/gdk-pixbuf/gdk-pixbuf-io.c.lib64 gtk+-2.19.1/gdk-pixbuf/gdk-pixbuf-io.c
+--- gtk+-2.19.1/gdk-pixbuf/gdk-pixbuf-io.c.lib64 2009-11-30 13:10:35.000000000 -0500
++++ gtk+-2.19.1/gdk-pixbuf/gdk-pixbuf-io.c 2009-11-30 20:54:21.842859303 -0500
+@@ -305,7 +305,17 @@ gdk_pixbuf_get_module_file (void)
+ gchar *result = g_strdup (g_getenv ("GDK_PIXBUF_MODULE_FILE"));
+
+ if (!result)
+- result = g_build_filename (GTK_SYSCONFDIR, "gtk-3.0", "gdk-pixbuf.loaders", NULL);
++ {
++ result = g_build_filename (GTK_SYSCONFDIR, "gtk-3.0",
++ HOST, "gdk-pixbuf.loaders", NULL);
++ if (!g_file_test (result, G_FILE_TEST_EXISTS))
++ {
++ g_free (result);
++
++ result = g_build_filename (GTK_SYSCONFDIR, "gtk-3.0",
++ "gdk-pixbuf.loaders", NULL);
++ }
++ }
+
+ return result;
+ }
+diff -up gtk+-2.19.1/gdk-pixbuf/Makefile.am.lib64 gtk+-2.19.1/gdk-pixbuf/Makefile.am
+--- gtk+-2.19.1/gdk-pixbuf/Makefile.am.lib64 2009-11-26 01:35:49.000000000 -0500
++++ gtk+-2.19.1/gdk-pixbuf/Makefile.am 2009-11-30 20:54:21.842859303 -0500
+@@ -521,6 +521,7 @@ INCLUDES = \
+ -I$(top_srcdir)/gdk-pixbuf \
+ -I$(top_builddir)/gdk-pixbuf \
+ -DGTK_SYSCONFDIR=\"$(sysconfdir)\" \
++ -DHOST=\"$(host_triplet)\" \
+ -DGTK_VERSION=\"$(GTK_VERSION)\" \
+ -DGTK_BINARY_VERSION=\"$(GTK_BINARY_VERSION)\" \
+ -DGTK_PREFIX=\"$(prefix)\" \
+diff -up gtk+-2.19.1/gdk-pixbuf/Makefile.in.lib64 gtk+-2.19.1/gdk-pixbuf/Makefile.in
+--- gtk+-2.19.1/gdk-pixbuf/Makefile.in.lib64 2009-11-30 20:54:58.058857713 -0500
++++ gtk+-2.19.1/gdk-pixbuf/Makefile.in 2009-11-30 20:55:21.902591753 -0500
+@@ -1344,6 +1344,7 @@ INCLUDES = \
+ -I$(top_srcdir)/gdk-pixbuf \
+ -I$(top_builddir)/gdk-pixbuf \
+ -DGTK_SYSCONFDIR=\"$(sysconfdir)\" \
++ -DHOST=\"$(host_triplet)\" \
+ -DGTK_VERSION=\"$(GTK_VERSION)\" \
+ -DGTK_BINARY_VERSION=\"$(GTK_BINARY_VERSION)\" \
+ -DGTK_PREFIX=\"$(prefix)\" \
+diff -up gtk+-2.19.1/gtk/gtkrc.c.lib64 gtk+-2.19.1/gtk/gtkrc.c
+--- gtk+-2.19.1/gtk/gtkrc.c.lib64 2009-11-26 01:35:50.000000000 -0500
++++ gtk+-2.19.1/gtk/gtkrc.c 2009-11-30 20:54:21.844826383 -0500
+@@ -450,7 +450,17 @@ gtk_rc_get_im_module_file (void)
+ if (im_module_file)
+ result = g_strdup (im_module_file);
+ else
+- result = g_build_filename (GTK_SYSCONFDIR, "gtk-3.0", "gtk.immodules", NULL);
++ {
++ result = g_build_filename (GTK_SYSCONFDIR, "gtk-3.0", GTK_HOST,
++ "gtk.immodules", NULL);
++ if (!g_file_test (result, G_FILE_TEST_EXISTS))
++ {
++ g_free (result);
++
++ result = g_build_filename (GTK_SYSCONFDIR, "gtk-3.0",
++ "gtk.immodules", NULL);
++ }
++ }
+ }
+
+ return result;
bgstack15