make sure Gtk+ is looking in the correct pathes for gtkrc and the themes.

--
Initially based on a patch from: Yasushi Kurosawa <abu@din.or.jp>
This commit is contained in:
brad 2001-01-09 04:42:57 +00:00
parent ab64d0d0dc
commit 559037bb04

54
x11/gtk+/patches/patch-ai Normal file
View File

@ -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);