[gtk+] Set an error when loading a GtkIconInfo fails



commit 6b7981d2f5fd8e6578a5793d1a088a87f16370ad
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Oct 15 20:00:57 2013 -0400

    Set an error when loading a GtkIconInfo fails
    
    Failure to do so leads to assertion failures.
    https://bugzilla.gnome.org/show_bug.cgi?id=710073

 gtk/gtkicontheme.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c
index 7fc76bf..bf5a224 100644
--- a/gtk/gtkicontheme.c
+++ b/gtk/gtkicontheme.c
@@ -4193,7 +4193,7 @@ _gtk_icon_info_load_symbolic_internal (GtkIconInfo  *icon_info,
       css_error = gdk_color_to_css (&error_default_color);
     }
 
-  if (!g_file_load_contents (icon_info->icon_file, NULL, &file_data, &file_len, NULL, NULL))
+  if (!g_file_load_contents (icon_info->icon_file, NULL, &file_data, &file_len, NULL, error))
     return NULL;
 
   if (!icon_info->symbolic_pixbuf_size)


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