cellrendererpixbuf: Use fallback icons with icon-name

This gives us a better chance of finding an icon to show.

Closes: #1809
(cherry picked from commit fbe0e32813)
This commit is contained in:
Iain Lane 2019-04-08 14:52:49 +01:00
parent 6cb72d7f8c
commit d151223b1b
No known key found for this signature in database
GPG Key ID: E352D5C51C5041D4

View File

@ -464,6 +464,7 @@ create_icon_helper (GtkCellRendererPixbuf *cellpixbuf,
GtkIconHelper *helper;
helper = gtk_icon_helper_new (gtk_style_context_get_node (gtk_widget_get_style_context (widget)), widget);
_gtk_icon_helper_set_use_fallback (helper, TRUE);
_gtk_icon_helper_set_force_scale_pixbuf (helper, TRUE);
_gtk_icon_helper_set_definition (helper, priv->image_def);
if (gtk_image_definition_get_storage_type (priv->image_def) != GTK_IMAGE_PIXBUF)