projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d424837
)
GtkWindow: Handle non-square icons with height > width correctly
author
Christian Stadelmann
<delqooklpy@genodeftest.de>
Tue, 29 May 2018 17:40:06 +0000
(17:40 +0000)
committer
Christian Stadelmann
<dev@genodeftest.de>
Thu, 31 May 2018 15:26:17 +0000
(17:26 +0200)
gtk/gtkwindow.c
patch
|
blob
|
history
diff --git
a/gtk/gtkwindow.c
b/gtk/gtkwindow.c
index b8be885df77b7bee7f3eedcd7b09c66107110f7a..f53aa6855afb7f8cefd2e4e50859e3caa5e1a714 100644
(file)
--- 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);
}