[Xfce4-commits] [xfce/xfdesktop] 03/03: Ignore shadow blur radius when calculating icon text box

noreply at xfce.org noreply at xfce.org
Sat Mar 28 04:16:54 CET 2015


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository xfce/xfdesktop.

commit af98e9cbad8343c1daff9cdd1b281ae19e257995
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