summaryrefslogtreecommitdiff
path: root/applets/wncklet
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-11-23 12:10:10 +0100
committerinfirit <[email protected]>2014-11-23 12:10:10 +0100
commit02bea48c33f6c5c6dc27c7c23a4c03123b8c1e83 (patch)
tree78b46ba5718d512588b84001f10de64a1e07c98e /applets/wncklet
parent2db41271af1f4db0be8d6fa68bb4b06d23967eb9 (diff)
downloadmate-panel-02bea48c33f6c5c6dc27c7c23a4c03123b8c1e83.tar.bz2
mate-panel-02bea48c33f6c5c6dc27c7c23a4c03123b8c1e83.tar.xz
showdesktop: Fix the size of the icon
Based on gnome-panel commit: 6dae521ff187dcb2da1969ad017cf5b9e1bcb8f2 From: Carlos Garcia Campos <[email protected]>
Diffstat (limited to 'applets/wncklet')
-rw-r--r--applets/wncklet/showdesktop.c4
1 files 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)