From: Christian Stadelmann Date: Tue, 29 May 2018 17:40:06 +0000 (+0000) Subject: GtkWindow: Handle non-square icons with height > width correctly X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~22^2~221^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a70f0356e9ab13908b7d3119ad5ae9dbb9fe92b9;p=gtk4.git GtkWindow: Handle non-square icons with height > width correctly --- diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index b8be885df7..f53aa6855a 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -4569,7 +4569,8 @@ icon_from_list (GList *list, { texture = list->data; - if (gdk_texture_get_width (texture) <= size) + if (gdk_texture_get_width (texture) <= size && + gdk_texture_get_height (texture) <= size) return g_object_ref (texture); }