[gtk: 1/2] GtkWindow: Handle non-square icons with height > width correctly
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk: 1/2] GtkWindow: Handle non-square icons with height > width correctly
- Date: Sun, 3 Jun 2018 18:11:44 +0000 (UTC)
commit a70f0356e9ab13908b7d3119ad5ae9dbb9fe92b9
Author: Christian Stadelmann <delqooklpy genodeftest de>
Date: Tue May 29 17:40:06 2018 +0000
GtkWindow: Handle non-square icons with height > width correctly
gtk/gtkwindow.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]