1 From: Jookia <166291@gmail.com>
2 Subject: [PATCHv2] gtk: Patch GTK+ to look for themes in profiles.
4 Date: Sun, 13 Mar 2016 15:17:37 +1100
5 Url: https://lists.gnu.org/archive/html/guix-devel/2016-03/msg00492.html
7 diff -Naur gtk+-2.24.28.new/gtk/gtkrc.c gtk+-2.24.28/gtk/gtkrc.c
8 --- gtk+-2.24.28.new/gtk/gtkrc.c 2016-03-13 10:31:14.413644362 +1100
9 +++ gtk+-2.24.28/gtk/gtkrc.c 2016-03-13 12:51:34.723398423 +1100
12 const gchar *home_dir;
14 + const gchar * const *xdg_data_dirs;
18 subpath = g_strconcat ("gtk-2.0-", type,
24 + xdg_data_dirs = g_get_system_data_dirs ();
25 + for (i = 0; xdg_data_dirs[i]; i++)
27 + path = g_build_filename (xdg_data_dirs[i], "themes", name, subpath, NULL);
28 + if (g_file_test (path, G_FILE_TEST_EXISTS))
40 gchar *theme_dir = gtk_rc_get_theme_dir ();
41 path = g_build_filename (theme_dir, name, subpath, NULL);