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
This commit is contained in:
Matthias Clasen 2013-10-15 20:00:57 -04:00
parent 0db75c6b10
commit 6b7981d2f5

View File

@ -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)