[Xfce4-commits] [xfce/xfdesktop] 01/02: Fix calculation of shadows that are offset in RTL text (Bug #5239)

noreply at xfce.org noreply at xfce.org
Sat Feb 14 18:54:17 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 6630507a15e8e35cd14c4fcc81d887a85e667d50
Author: Matias De lellis <mati86dl at gmail.com>
Date:   Sat Feb 14 09:10:44 2015 -0300

    Fix calculation of shadows that are offset in RTL text (Bug #5239)
    
    Signed-off-by: Eric Koegel <eric.koegel at gmail.com>
---
 src/xfdesktop-icon-view.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/xfdesktop-icon-view.c b/src/xfdesktop-icon-view.c
index 8f1cdc4..e4d646a 100644
--- a/src/xfdesktop-icon-view.c
+++ b/src/xfdesktop-icon-view.c
@@ -2995,7 +2995,6 @@ xfdesktop_icon_view_draw_text(cairo_t *cr, PangoLayout *playout, GdkRectangle *t
                   box_area.x + extents + x_offset - rtl_offset,
                   box_area.y + extents + y_offset);
 
-
     if (blur_radius > 1) {
         cr = gtk_css_shadow_value_start_drawing (cr, blur_radius);
         pango_cairo_show_layout (cr, playout);
@@ -3089,6 +3088,7 @@ xfdesktop_icon_view_paint_icon(XfdesktopIconView *icon_view,
     if(gdk_rectangle_intersect(area, &text_extents, &intersection)
        && icon_view->priv->font_size > 0)
     {
+        text_extents.x += rtl_offset;
         xfdesktop_paint_rounded_box(icon_view, state, &text_extents, area);
 
         if (state == GTK_STATE_NORMAL) {
@@ -3113,6 +3113,8 @@ xfdesktop_icon_view_paint_icon(XfdesktopIconView *icon_view,
                                           sh_text_col);
         }
 
+        text_extents.x -= rtl_offset;
+
         TRACE("painting text at %dx%d+%d+%d",
               text_extents.width, text_extents.height,
               text_extents.x, text_extents.y);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list