summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2018-07-27 22:27:38 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2018-07-27 22:27:38 +0000
commit04656355bd73375a6666c212b02be07a89808811 (patch)
tree37e69bf3bb83cfe7842e747614352aaa9860abb2 /src/ui/dialog
parentWorking on icons (diff)
downloadinkscape-04656355bd73375a6666c212b02be07a89808811.tar.gz
inkscape-04656355bd73375a6666c212b02be07a89808811.zip
Refactor fo theme switcher
Diffstat (limited to 'src/ui/dialog')
-rw-r--r--src/ui/dialog/inkscape-preferences.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ui/dialog/inkscape-preferences.cpp b/src/ui/dialog/inkscape-preferences.cpp
index b2020fa5f..2be489c23 100644
--- a/src/ui/dialog/inkscape-preferences.cpp
+++ b/src/ui/dialog/inkscape-preferences.cpp
@@ -610,11 +610,13 @@ static void _inkscape_fill_icons(const gchar *path, GHashTable *t)
if (!dir) {
return;
}
- std::cout << path << "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" << std::endl;
while ((dir_entry = g_dir_read_name(dir))) {
gchar *filename = g_build_filename(path, dir_entry, "index.theme", NULL);
gchar *scalable = g_build_filename(path, dir_entry, "scalable", NULL);
- if (g_file_test(filename, G_FILE_TEST_IS_REGULAR) && g_file_test(scalable, G_FILE_TEST_IS_DIR) &&
+ gchar *symbolic = g_build_filename(path, dir_entry, "symbolic", NULL);
+ if (g_file_test(filename, G_FILE_TEST_IS_REGULAR) &&
+ (g_file_test(scalable, G_FILE_TEST_IS_DIR) ||
+ g_file_test(symbolic, G_FILE_TEST_IS_DIR)) &&
g_strcmp0(dir_entry, "default") != 0 && !g_hash_table_contains(t, dir_entry)) {
g_hash_table_add(t, g_strdup(dir_entry));
}