forked from AuroraMiddleware/gtk
GtkWindow: Handle non-square icons with height > width correctly
This commit is contained in:
parent
d424837496
commit
a70f0356e9
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user