mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 14:30:15 +00:00
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:
parent
0db75c6b10
commit
6b7981d2f5
@ -4193,7 +4193,7 @@ _gtk_icon_info_load_symbolic_internal (GtkIconInfo *icon_info,
|
|||||||
css_error = gdk_color_to_css (&error_default_color);
|
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;
|
return NULL;
|
||||||
|
|
||||||
if (!icon_info->symbolic_pixbuf_size)
|
if (!icon_info->symbolic_pixbuf_size)
|
||||||
|
Loading…
Reference in New Issue
Block a user