diff options
-rw-r--r-- | theme-viewer/theme-viewer-window.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/theme-viewer/theme-viewer-window.c b/theme-viewer/theme-viewer-window.c index 5d46f299..a0d4a03e 100644 --- a/theme-viewer/theme-viewer-window.c +++ b/theme-viewer/theme-viewer-window.c @@ -657,6 +657,8 @@ type_combo_box_changed_cb (GtkComboBox *combo_box, MetaThemeType type; GSList *themes; gchar *themes_dir; + const gchar *const *xdg_data_dirs; + gint i; GSList *theme; theme_combo_box_text = GTK_COMBO_BOX_TEXT (window->theme_combo_box); @@ -674,6 +676,14 @@ type_combo_box_changed_cb (GtkComboBox *combo_box, get_valid_themes (window, themes_dir, type, &themes); g_free (themes_dir); + xdg_data_dirs = g_get_system_data_dirs (); + for (i = 0; xdg_data_dirs[i] != NULL; i++) + { + themes_dir = g_build_filename (xdg_data_dirs[i], "themes", NULL); + get_valid_themes (window, themes_dir, type, &themes); + g_free (themes_dir); + } + themes_dir = g_build_filename (g_get_user_data_dir (), "themes", NULL); get_valid_themes (window, themes_dir, type, &themes); g_free (themes_dir); |