diff options
author | Michael Catanzaro <mcatanzaro@gnome.org> | 2014-11-25 00:21:29 -0600 |
---|---|---|
committer | Jakub Steiner <jimmac@gmail.com> | 2014-11-26 14:22:25 +0100 |
commit | b6373196a33e6e26cfeb43bbd163ccb68b43620f (patch) | |
tree | 9f936c4c8da7d05ce94ba93896bf14cb94fbf265 | |
parent | b643441d1c37c79d00c12d1f21f1c73e778d3837 (diff) | |
download | gnome-themes-standard-b6373196a33e6e26cfeb43bbd163ccb68b43620f.tar.gz |
create-highcontrast: process only symbolic icons
Since the switch from gnome-icon-theme-symbolic to adwaita-icon-theme,
this tool has been inadvertently processing non-symbolic icons.
https://bugzilla.gnome.org/show_bug.cgi?id=740444
-rw-r--r-- | themes/HighContrast/create-highcontrast.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/themes/HighContrast/create-highcontrast.c b/themes/HighContrast/create-highcontrast.c index 7d17e768..3e3383a6 100644 --- a/themes/HighContrast/create-highcontrast.c +++ b/themes/HighContrast/create-highcontrast.c @@ -322,7 +322,7 @@ static void process (int argc, char **argv) { - GList *svg_files = NULL; + GList *symbolic_icons = NULL; GQueue *descend_into_files; GFile *current_dir, *symbolic_theme, *file; gchar *str; @@ -350,8 +350,9 @@ process (int argc, { if (g_file_info_get_file_type (child_info) == G_FILE_TYPE_DIRECTORY) g_queue_push_tail (descend_into_files, g_file_resolve_relative_path (file, g_file_info_get_name (child_info))); - else if (g_content_type_is_a (g_file_info_get_content_type (child_info), "image/svg+xml")) - svg_files = g_list_prepend (svg_files, g_file_resolve_relative_path (file, g_file_info_get_name (child_info))); + else if (g_content_type_is_a (g_file_info_get_content_type (child_info), "image/svg+xml") && + strstr (g_file_info_get_name (child_info), "-symbolic.svg")) + symbolic_icons = g_list_prepend (symbolic_icons, g_file_resolve_relative_path (file, g_file_info_get_name (child_info))); g_object_unref (child_info); } @@ -361,9 +362,9 @@ process (int argc, } for (idx = 0; idx < G_N_ELEMENTS (icon_sizes); idx++) - write_png_theme (svg_files, icon_sizes[idx]); + write_png_theme (symbolic_icons, icon_sizes[idx]); - g_list_free_full (svg_files, g_object_unref); + g_list_free_full (symbolic_icons, g_object_unref); g_queue_free (descend_into_files); g_clear_object (&gnome_dir); g_clear_object (&hc_dir); |