From 559037bb04aea62ea6320eeaf69a26a0b597fb48 Mon Sep 17 00:00:00 2001 From: brad Date: Tue, 9 Jan 2001 04:42:57 +0000 Subject: [PATCH] make sure Gtk+ is looking in the correct pathes for gtkrc and the themes. -- Initially based on a patch from: Yasushi Kurosawa --- x11/gtk+/patches/patch-ai | 54 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 x11/gtk+/patches/patch-ai diff --git a/x11/gtk+/patches/patch-ai b/x11/gtk+/patches/patch-ai new file mode 100644 index 00000000000..69c9d4b8270 --- /dev/null +++ b/x11/gtk+/patches/patch-ai @@ -0,0 +1,54 @@ +--- gtk/gtkrc.c.orig Mon Jan 8 20:40:22 2001 ++++ gtk/gtkrc.c Mon Jan 8 21:27:25 2001 +@@ -245,9 +245,9 @@ + + var = getenv("GTK_EXE_PREFIX"); + if (var) +- path = g_strdup_printf("%s%s", var, "/lib/gtk/themes/engines"); ++ path = g_strdup_printf("%s%s", var, "/share/gtk/themes/engines"); + else +- path = g_strdup_printf("%s%s", GTK_EXE_PREFIX, "/lib/gtk/themes/engines"); ++ path = g_strdup_printf("%s%s", GTK_EXE_PREFIX, "/share/gtk/themes/engines"); + + return path; + } +@@ -260,9 +260,9 @@ + + var = getenv("GTK_DATA_PREFIX"); + if (var) +- path = g_strdup_printf("%s%s", var, "/share/gtk/themes"); ++ path = g_strdup_printf("%s%s", var, "/share/themes"); + else +- path = g_strdup_printf("%s%s", GTK_DATA_PREFIX, "/share/gtk/themes"); ++ path = g_strdup_printf("%s%s", GTK_DATA_PREFIX, "/share/themes"); + + for (n = 0; pixmap_path[n]; n++) ; + if (n >= GTK_RC_MAX_PIXMAP_PATHS - 1) +@@ -287,15 +287,15 @@ + + var = getenv("GTK_EXE_PREFIX"); + if (var) +- path = g_strdup_printf("%s%s", var, "/lib/gtk/themes/engines"); ++ path = g_strdup_printf("%s%s", var, "/share/gtk/themes/engines"); + else +- path = g_strdup_printf("%s%s", GTK_EXE_PREFIX, "/lib/gtk/themes/engines"); ++ path = g_strdup_printf("%s%s", GTK_EXE_PREFIX, "/share/gtk/themes/engines"); + module_path[n++] = g_strdup(path); + g_free(path); + + var = g_get_home_dir (); + if (var) +- path = g_strdup_printf("%s%s", var, "/.gtk/lib/themes/engines"); ++ path = g_strdup_printf("%s%s", var, "/.gtk/themes/engines"); + module_path[n++] = g_strdup(path); + module_path[n] = NULL; + g_free(path); +@@ -329,7 +329,7 @@ + } + else + { +- str = g_strdup_printf ("%s%s", GTK_SYSCONFDIR, "/gtk/gtkrc"); ++ str = g_strdup_printf ("%s%s", GTK_SYSCONFDIR, "/gtkrc"); + gtk_rc_add_default_file (str); + g_free (str); +