[Xfce4-commits] [xfce/xfdesktop] 15/35: Ignore shadow blur radius when calculating icon text box
noreply at xfce.org
noreply at xfce.org
Sun May 17 11:38:03 CEST 2015
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to branch xfce-4.12
in repository xfce/xfdesktop.
commit 6ec0392f0a9bc3a3c6dd7e85e0966fa36d5d1b59
Author: Thaddaeus Tintenfisch <thad.fisch at gmail.com>
Date: Tue Mar 24 15:22:48 2015 +0100
Ignore shadow blur radius when calculating icon text box
This change normalizes the size of the icon text box.
---
src/xfdesktop-icon-view.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/xfdesktop-icon-view.c b/src/xfdesktop-icon-view.c
index 6ce5e8b..adff45c 100644
--- a/src/xfdesktop-icon-view.c
+++ b/src/xfdesktop-icon-view.c
@@ -2984,10 +2984,10 @@ xfdesktop_icon_view_calculate_icon_text_area(XfdesktopIconView *icon_view,
xfdesktop_icon_view_setup_pango_layout(icon_view, icon, playout);
pango_layout_get_pixel_extents(playout, NULL, &prect);
- text_area->x = prect.x - SHADOW_EXTENTS - SHADOW_X_OFFSET;
- text_area->y = prect.y - SHADOW_EXTENTS - SHADOW_Y_OFFSET;
- text_area->width = prect.width + 2 * (SHADOW_EXTENTS + SHADOW_X_OFFSET);
- text_area->height = prect.height + 2 * (SHADOW_EXTENTS + SHADOW_Y_OFFSET);
+ text_area->x = prect.x - SHADOW_X_OFFSET;
+ text_area->y = prect.y - SHADOW_Y_OFFSET;
+ text_area->width = prect.width + 2 * SHADOW_X_OFFSET;
+ text_area->height = prect.height + 2 * SHADOW_Y_OFFSET;
return TRUE;
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list