[gtk/wip/cellrendererpixbuf-fallbacks-3-24: 12/12] cellrendererpixbuf: Use fallback icons with icon-name



commit d151223b1bd7890c6614fd648c1f45e91fd8b730
Author: Iain Lane <iainl gnome org>
Date:   Mon Apr 8 14:52:49 2019 +0100

    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)

 gtk/gtkcellrendererpixbuf.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gtk/gtkcellrendererpixbuf.c b/gtk/gtkcellrendererpixbuf.c
index 85eab79d69..e24f956617 100644
--- a/gtk/gtkcellrendererpixbuf.c
+++ b/gtk/gtkcellrendererpixbuf.c
@@ -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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]