GtkIconTheme: Improve an error message

Mention the name of the theme when an icon lookup fails.
https://bugzilla.gnome.org/show_bug.cgi?id=687963
This commit is contained in:
Matthias Clasen 2014-11-03 00:25:14 -05:00
parent 2aa3eea781
commit 95e8ae6e75

View File

@ -2305,7 +2305,7 @@ gtk_icon_theme_load_icon_for_scale (GtkIconTheme *icon_theme,
if (!icon_info) if (!icon_info)
{ {
g_set_error (error, GTK_ICON_THEME_ERROR, GTK_ICON_THEME_NOT_FOUND, g_set_error (error, GTK_ICON_THEME_ERROR, GTK_ICON_THEME_NOT_FOUND,
_("Icon '%s' not present in theme"), icon_name); _("Icon '%s' not present in theme %s"), icon_name, icon_theme->priv->current_theme);
return NULL; return NULL;
} }
@ -2369,7 +2369,7 @@ gtk_icon_theme_load_surface (GtkIconTheme *icon_theme,
if (!icon_info) if (!icon_info)
{ {
g_set_error (error, GTK_ICON_THEME_ERROR, GTK_ICON_THEME_NOT_FOUND, g_set_error (error, GTK_ICON_THEME_ERROR, GTK_ICON_THEME_NOT_FOUND,
_("Icon '%s' not present in theme"), icon_name); _("Icon '%s' not present in theme %s"), icon_name, icon_theme->priv->current_theme);
return NULL; return NULL;
} }