summaryrefslogtreecommitdiff
path: root/gtk/gtkicontheme.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtkicontheme.c')
-rw-r--r--gtk/gtkicontheme.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c
index c3385e0f62..8a1f83568e 100644
--- a/gtk/gtkicontheme.c
+++ b/gtk/gtkicontheme.c
@@ -4208,12 +4208,12 @@ gtk_icon_info_load_symbolic_internal (GtkIconInfo *icon_info,
g_object_unref (pixbuf);
}
- if (icon_info->dir_type != ICON_THEME_DIR_SCALABLE)
- g_warning ("Symbolic icon %s is not in a scalable icon theme directory",
- icon_info->key.icon_names[0]);
+ 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);
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[0],
+ 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);