icon theme: Ensure to propagate an error
If the svg pixbuf loader is not available, we end up with criticals from gtk_css_image_icon_theme_draw because gtk_icon_info_load_symbolic returns NULL without setting an error. Avoid this by propagating the load error.
This commit is contained in:
parent
6f340d4384
commit
270e900f55
@ -4441,7 +4441,11 @@ gtk_icon_info_load_symbolic_svg (GtkIconInfo *icon_info,
|
|||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if (!icon_info_ensure_scale_and_pixbuf (icon_info))
|
if (!icon_info_ensure_scale_and_pixbuf (icon_info))
|
||||||
return NULL;
|
{
|
||||||
|
g_propagate_error (error, icon_info->load_error);
|
||||||
|
icon_info->load_error = NULL;
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if (icon_info->symbolic_width == 0 ||
|
if (icon_info->symbolic_width == 0 ||
|
||||||
icon_info->symbolic_height == 0)
|
icon_info->symbolic_height == 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user