[Xfce4-commits] [xfce/xfdesktop] 02/02: Fix a regression

noreply at xfce.org noreply at xfce.org
Tue Mar 24 17:30:34 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 a6761e4a3429fd82bb0f0b98277660d689b3d2a4
Author: Thaddaeus Tintenfisch <thad.fisch at gmail.com>
Date:   Mon Mar 23 22:11:58 2015 +0100

    Fix a regression
    
    This fixes a visual glitch caused by commit d8b37e5.
---
 src/xfdesktop-icon-view.c |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/xfdesktop-icon-view.c b/src/xfdesktop-icon-view.c
index 1b8c64e..ae3a1a0 100644
--- a/src/xfdesktop-icon-view.c
+++ b/src/xfdesktop-icon-view.c
@@ -3057,13 +3057,13 @@ xfdesktop_icon_view_draw_image(cairo_t *cr, GdkPixbuf *pix, GdkRectangle *rect)
 
 static void
 xfdesktop_icon_view_draw_text(cairo_t *cr, PangoLayout *playout, GdkRectangle *text_area,
-                              gint x_offset, gint y_offset, gint blur_radius,
-                              GdkColor *color)
+                              GdkRectangle *box_area, gint x_offset, gint y_offset,
+                              gint blur_radius, GdkColor *color)
 {
     cairo_save(cr);
 
     /*  Clip the cairo area to blur the minimum surface */
-    gdk_cairo_rectangle(cr, text_area);
+    gdk_cairo_rectangle(cr, box_area);
     cairo_clip(cr);
 
     cairo_move_to(cr,
@@ -3188,6 +3188,7 @@ xfdesktop_icon_view_paint_icon(XfdesktopIconView *icon_view,
             /* Draw the shadow */
             xfdesktop_icon_view_draw_text(cr, playout,
                                           &text_extents,
+                                          &box_extents,
                                           x_offset,
                                           y_offset,
                                           icon_view->priv->shadow_blur_radius,

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


More information about the Xfce4-commits mailing list