From 776f034e2d7e650738911b74da31b15ad579b89f Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sat, 12 Dec 2015 03:24:32 +0100 Subject: [PATCH] cellrendererpixbuf: Don't set icon size for pixbufs The code before the refactorings didn't set it, so we now don't set it either. Fixes images being way too smal inside iconviews. --- gtk/gtkcellrendererpixbuf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk/gtkcellrendererpixbuf.c b/gtk/gtkcellrendererpixbuf.c index 36dbb045b7..2201c72c86 100644 --- a/gtk/gtkcellrendererpixbuf.c +++ b/gtk/gtkcellrendererpixbuf.c @@ -449,7 +449,8 @@ create_icon_helper (GtkCellRendererPixbuf *cellpixbuf, helper = _gtk_icon_helper_new (widget); _gtk_icon_helper_set_force_scale_pixbuf (helper, TRUE); _gtk_icon_helper_set_definition (helper, priv->image_def); - _gtk_icon_helper_set_icon_size (helper, priv->icon_size); + if (gtk_image_definition_get_storage_type (priv->image_def) != GTK_IMAGE_PIXBUF) + _gtk_icon_helper_set_icon_size (helper, priv->icon_size); return helper; }