[gtk+] GtkIconTheme: Improve an error message



commit 95e8ae6e756364690fc22625a53b9cc98c0c5c02
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Nov 3 00:25:14 2014 -0500

    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

 gtk/gtkicontheme.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c
index ea44a81..2591086 100644
--- a/gtk/gtkicontheme.c
+++ b/gtk/gtkicontheme.c
@@ -2305,7 +2305,7 @@ gtk_icon_theme_load_icon_for_scale (GtkIconTheme        *icon_theme,
   if (!icon_info)
     {
       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;
     }
 
@@ -2369,7 +2369,7 @@ gtk_icon_theme_load_surface (GtkIconTheme        *icon_theme,
   if (!icon_info)
     {
       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;
     }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]