[gtk+] icon-theme: Show filename attempted when icon fails to load



commit 7b8ea9af5525b116b3860124d3410249403f8e36
Author: Robert Ancell <robert ancell canonical com>
Date:   Thu Jun 8 12:08:22 2017 +1200

    icon-theme: Show filename attempted when icon fails to load

 gtk/gtkicontheme.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c
index 8b12c02..2bd7a13 100644
--- a/gtk/gtkicontheme.c
+++ b/gtk/gtkicontheme.c
@@ -2306,6 +2306,7 @@ gtk_icon_theme_load_icon_for_scale (GtkIconTheme        *icon_theme,
     }
 
   pixbuf = gtk_icon_info_load_icon (icon_info, error);
+  g_prefix_error (error, "Failed to load %s: ", icon_info->filename);
   g_object_unref (icon_info);
 
   return pixbuf;


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