mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-10 12:40:10 +00:00
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:
parent
6cb72d7f8c
commit
d151223b1b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user