summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libcaja-private/caja-icon-canvas-item.c15
1 files 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