[gtk+] Reduce symbolic icon warnings to a debug message
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Reduce symbolic icon warnings to a debug message
- Date: Sat, 31 Jan 2015 19:32:24 +0000 (UTC)
commit 48a41b01196febe124eb29c8d8ba8a996935adaa
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Jan 31 13:33:42 2015 -0500
Reduce symbolic icon warnings to a debug message
These icons are out there in the wild, and the warning causes
distcheck to fail. So, reduce it to a debug message.
gtk/gtkicontheme.c | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c
index 0592d88..dc82b45 100644
--- a/gtk/gtkicontheme.c
+++ b/gtk/gtkicontheme.c
@@ -4449,14 +4449,16 @@ gtk_icon_info_load_symbolic_svg (GtkIconInfo *icon_info,
g_object_unref (pixbuf);
}
+ GTK_NOTE (ICONTHEME,
if (icon_info->dir_type == ICON_THEME_DIR_UNTHEMED)
- g_warning ("Symbolic icon %s is not in an icon theme directory",
- icon_info->key.icon_names ? icon_info->key.icon_names[0] : icon_info->filename);
+ g_print ("Symbolic icon %s is not in an icon theme directory",
+ icon_info->key.icon_names ? icon_info->key.icon_names[0] : icon_info->filename);
else if (icon_info->dir_size * icon_info->dir_scale != icon_info->symbolic_size)
- g_warning ("Symbolic icon %s of size %d is in an icon theme directory of size %d",
- icon_info->key.icon_names ? icon_info->key.icon_names[0] : icon_info->filename,
- icon_info->symbolic_size,
- icon_info->dir_size * icon_info->dir_scale);
+ g_print ("Symbolic icon %s of size %d is in an icon theme directory of size %d",
+ icon_info->key.icon_names ? icon_info->key.icon_names[0] : icon_info->filename,
+ icon_info->symbolic_size,
+ icon_info->dir_size * icon_info->dir_scale)
+ );
size = g_strdup_printf ("%d", icon_info->symbolic_size);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]