GtkWindow: Handle non-square icons with height > width correctly

This commit is contained in:
Christian Stadelmann 2018-05-29 17:40:06 +00:00 committed by Christian Stadelmann
parent d424837496
commit a70f0356e9

View File

@ -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);
}