From 02bea48c33f6c5c6dc27c7c23a4c03123b8c1e83 Mon Sep 17 00:00:00 2001 From: infirit Date: Sun, 23 Nov 2014 12:10:10 +0100 Subject: showdesktop: Fix the size of the icon Based on gnome-panel commit: 6dae521ff187dcb2da1969ad017cf5b9e1bcb8f2 From: Carlos Garcia Campos --- applets/wncklet/showdesktop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/applets/wncklet/showdesktop.c b/applets/wncklet/showdesktop.c index 534d74fd..b457a215 100644 --- a/applets/wncklet/showdesktop.c +++ b/applets/wncklet/showdesktop.c @@ -169,7 +169,7 @@ static void update_icon(ShowDesktopData* sdd) break; } - icon_size = sdd->size - 2 * (focus_width + focus_pad) + thickness; + icon_size = sdd->size - 2 * (focus_width + focus_pad) - thickness; #else gtk_widget_style_get (sdd->button, "focus-line-width", &focus_width, "focus-padding", &focus_pad, NULL); @@ -185,7 +185,7 @@ static void update_icon(ShowDesktopData* sdd) break; } - icon_size = sdd->size - 2 * (focus_width + focus_pad + thickness); + icon_size = sdd->size - 2 * (focus_width + focus_pad) - thickness; #endif if (icon_size < 22) -- cgit v1.2.1