freebsd-ports/misc/metatheme/files/patch-af
Maxim Sobolev 1e33437fcc Add another monster from Helixcode - Metatheme, an utility for managing "theme
sets" that accomodate gtk, window manager, etc.
2000-11-27 16:44:31 +00:00

21 lines
589 B
Text

--- plugins/gtk/gtk-plugin.c 2000/11/26 21:25:12 1.1
+++ plugins/gtk/gtk-plugin.c 2000/11/26 21:27:39
@@ -375,15 +375,15 @@
/* This should be more robust.
* Perhaps we could make this user-configurable somehow. */
- pipe = popen ("gtk-config --prefix", "r");
+ pipe = popen ("%%GTK_CONFIG%% --prefix", "r");
if (pipe == NULL)
- return g_strdup ("/usr");
+ return g_strdup ("%%X11BASE%%");
fgets (prefix, 1000, pipe);
pclose (pipe);
if (prefix == NULL)
- return g_strdup ("/usr");
+ return g_strdup ("%%X11BASE%%");
return g_strchomp (g_strdup (prefix));
}