From b8b05eb092ded402d9b0d1b0a80e0627ddbc657a Mon Sep 17 00:00:00 2001 From: Jasmine Hassan Date: Thu, 18 Oct 2012 15:15:34 +0200 Subject: [lc-p] make drawing of resize knobs work again http://git.gnome.org/browse/nautilus/commit/?id=29d7b86087f6ab86f6abd6c3c08c4e1d94b92b36 --- libcaja-private/caja-icon-canvas-item.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/libcaja-private/caja-icon-canvas-item.c b/libcaja-private/caja-icon-canvas-item.c index cfb16105..64ba3020 100644 --- a/libcaja-private/caja-icon-canvas-item.c +++ b/libcaja-private/caja-icon-canvas-item.c @@ -1633,16 +1633,15 @@ draw_stretch_handles (CajaIconCanvasItem *item, GdkDrawable *drawable, rect->y1 - rect->y0 - 1); cairo_stroke (cr); - /* draw the stretch handles themselves */ + cairo_destroy (cr); - gdk_cairo_set_source_pixbuf (cr, knob_pixbuf, rect->x0, rect->y0); - cairo_pattern_set_extend (cairo_get_source (cr), CAIRO_EXTEND_REPEAT); - cairo_rectangle (cr, - rect->x1 - knob_width, rect->y1 - knob_height, - 2 * knob_width, 2 * knob_height); - cairo_fill (cr); + /* draw the stretch handles themselves */ + draw_pixbuf (knob_pixbuf, drawable, rect->x0, rect->y0); + draw_pixbuf (knob_pixbuf, drawable, rect->x0, rect->y1 - knob_height); + draw_pixbuf (knob_pixbuf, drawable, rect->x1 - knob_width, rect->y0); + draw_pixbuf (knob_pixbuf, drawable, rect->x1 - knob_width, rect->y1 - knob_height); - cairo_destroy (cr); + g_object_unref (knob_pixbuf); } static void -- cgit v1.2.1