mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
Always add the default gtkrc file to the search path so that we know we'll
have some sane theme properties when using KDE 3 or GNOME 2. Submitted by: kan
This commit is contained in:
parent
2fbb3a733b
commit
3243838676
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=107366
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= gtk
|
||||
PORTVERSION= 1.2.10
|
||||
PORTREVISION= 11
|
||||
PORTREVISION= 12
|
||||
CATEGORIES= x11-toolkits
|
||||
MASTER_SITES= ${MASTER_SITE_GNOME}
|
||||
MASTER_SITE_SUBDIR= sources/gtk+/1.2
|
||||
|
@ -1,6 +1,8 @@
|
||||
--- gtk/gtkrc.c.orig Thu Mar 15 12:41:40 2001
|
||||
+++ gtk/gtkrc.c Mon Apr 2 10:29:36 2001
|
||||
@@ -262,5 +262,5 @@
|
||||
--- gtk/gtkrc.c.orig Thu Mar 15 13:41:40 2001
|
||||
+++ gtk/gtkrc.c Fri Apr 16 00:24:54 2004
|
||||
@@ -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");
|
||||
@ -8,13 +10,36 @@
|
||||
- path = g_strdup_printf("%s%s", GTK_DATA_PREFIX, "/share/gtk/themes");
|
||||
+ path = g_strdup_printf("%s%s", GTK_DATA_PREFIX, "/share/themes");
|
||||
|
||||
@@ -296,3 +296,3 @@
|
||||
for (n = 0; pixmap_path[n]; n++) ;
|
||||
if (n >= GTK_RC_MAX_PIXMAP_PATHS - 1)
|
||||
@@ -294,7 +294,7 @@
|
||||
|
||||
var = g_get_home_dir ();
|
||||
if (var)
|
||||
- module_path[n++] = g_strdup_printf("%s%s", var, "/.gtk/lib/themes/engines");
|
||||
+ module_path[n++] = g_strdup_printf("%s%s", var, "/.gtk/themes/engines");
|
||||
module_path[n] = NULL;
|
||||
@@ -328,3 +328,3 @@
|
||||
}
|
||||
|
||||
@@ -312,6 +312,10 @@
|
||||
gtk_rc_default_files[0] = NULL;
|
||||
init = TRUE;
|
||||
|
||||
+ str = g_strdup_printf ("%s%s", GTK_SYSCONFDIR, "/gtkrc");
|
||||
+ gtk_rc_add_default_file (str);
|
||||
+ g_free (str);
|
||||
+
|
||||
var = getenv("GTK_RC_FILES");
|
||||
if (var)
|
||||
{
|
||||
@@ -326,10 +330,6 @@
|
||||
}
|
||||
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);
|
||||
- gtk_rc_add_default_file (str);
|
||||
- g_free (str);
|
||||
-
|
||||
var = g_get_home_dir ();
|
||||
if (var)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user