summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-icon-canvas-item.c
diff options
context:
space:
mode:
authorJasmine Hassan <[email protected]>2012-10-18 15:15:34 +0200
committerJasmine Hassan <[email protected]>2012-11-14 09:42:33 +0200
commitb8b05eb092ded402d9b0d1b0a80e0627ddbc657a (patch)
tree5543b3effa55cf9e5de91939c152007601547cc4 /libcaja-private/caja-icon-canvas-item.c
parent3b6a715fca493281fdb2d0c83d69ce28a21732dc (diff)
downloadcaja-b8b05eb092ded402d9b0d1b0a80e0627ddbc657a.tar.bz2
caja-b8b05eb092ded402d9b0d1b0a80e0627ddbc657a.tar.xz
[lc-p] make drawing of resize knobs work again
http://git.gnome.org/browse/nautilus/commit/?id=29d7b86087f6ab86f6abd6c3c08c4e1d94b92b36
Diffstat (limited to 'libcaja-private/caja-icon-canvas-item.c')
-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