[gnome-themes-standard] create-highcontrast: process only symbolic icons
- From: Jakub Steiner <jimmac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-themes-standard] create-highcontrast: process only symbolic icons
- Date: Wed, 26 Nov 2014 13:22:41 +0000 (UTC)
commit b6373196a33e6e26cfeb43bbd163ccb68b43620f
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Tue Nov 25 00:21:29 2014 -0600
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
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 7d17e76..3e3383a 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]