mactop: 0.1.9 -> 0.2.3 (#370511)
[NixPkgs.git] / pkgs / desktops / lxde / core / lxappearance / lxappearance-0.6.3-xdg.system.data.dirs.patch
bloba63882aa2a7ab2bdf6188333fcdc9ce698daba60
1 --- lxappearance-0.6.3/src/widget-theme.c.orig 2016-02-20 20:48:38.000000000 -0200
2 +++ lxappearance-0.6.3/src/widget-theme.c 2017-06-09 17:37:53.369555085 -0300
3 @@ -66,6 +66,7 @@
4 static void load_themes()
6 char* dir;
7 + const gchar * const * dirs;
8 GSList* themes = NULL, *l;
9 GtkTreeIter sel_it = {0};
10 GtkTreeSelection* tree_sel;
11 @@ -85,6 +86,16 @@
12 themes = load_themes_in_dir(dir, themes);
13 g_free(dir);
15 + /* load from sharedata theme dirs */
16 + dirs = g_get_system_data_dirs();
17 + while (*dirs != NULL)
18 + {
19 + dir = g_build_filename(*dirs, "themes", NULL);
20 + themes = load_themes_in_dir(dir, themes);
21 + g_free(dir);
22 + dirs++;
23 + }
25 themes = g_slist_sort(themes, (GCompareFunc)strcmp);
26 for(l = themes; l; l=l->next)