Unverified Commit d151223b authored by Iain Lane's avatar Iain Lane
Browse files

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 fbe0e328137714de00cd1b7d47f77b539092ac9a)
parent 6cb72d7f
...@@ -464,6 +464,7 @@ create_icon_helper (GtkCellRendererPixbuf *cellpixbuf, ...@@ -464,6 +464,7 @@ create_icon_helper (GtkCellRendererPixbuf *cellpixbuf,
GtkIconHelper *helper; GtkIconHelper *helper;
helper = gtk_icon_helper_new (gtk_style_context_get_node (gtk_widget_get_style_context (widget)), widget); 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_force_scale_pixbuf (helper, TRUE);
_gtk_icon_helper_set_definition (helper, priv->image_def); _gtk_icon_helper_set_definition (helper, priv->image_def);
if (gtk_image_definition_get_storage_type (priv->image_def) != GTK_IMAGE_PIXBUF) if (gtk_image_definition_get_storage_type (priv->image_def) != GTK_IMAGE_PIXBUF)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment