[Xfce4-commits] <xfdesktop:master> use gdk_cairo_rectangle() instead of cairo_rectangle()

Brian J. Tarricone brian at tarricone.org
Sat Aug 22 10:56:02 CEST 2009


Updating branch refs/heads/master
         to adc239805343ba41b15c66a244981b0b7ce3b20f (commit)
       from b20444e8036ee973f1042bae67e3c6b21a080b61 (commit)

commit adc239805343ba41b15c66a244981b0b7ce3b20f
Author: Brian J. Tarricone <brian at tarricone.org>
Date:   Sat Aug 22 01:56:08 2009 -0700

    use gdk_cairo_rectangle() instead of cairo_rectangle()

 src/xfdesktop-icon-view.c |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/xfdesktop-icon-view.c b/src/xfdesktop-icon-view.c
index 3cb3bda..2fe94fd 100644
--- a/src/xfdesktop-icon-view.c
+++ b/src/xfdesktop-icon-view.c
@@ -2471,14 +2471,12 @@ xfdesktop_paint_rounded_box(XfdesktopIconView *icon_view,
                               alpha);
 
         /* restrict painting to expose area */
-        cairo_rectangle(cr, expose_area->x, expose_area->y,
-                        expose_area->width, expose_area->height);
+        gdk_cairo_rectangle(cr, expose_area);
         cairo_clip(cr);
 
-        if(label_radius < 0.1) {
-            cairo_rectangle(cr, box_area.x, box_area.y,
-                            box_area.width, box_area.height);
-        } else {
+        if(label_radius < 0.1)
+            gdk_cairo_rectangle(cr, &box_area);
+        else {
             cairo_move_to(cr, box_area.x, box_area.y + label_radius);
             cairo_arc(cr, box_area.x + label_radius,
                       box_area.y + label_radius, label_radius,



More information about the Xfce4-commits mailing list