summaryrefslogtreecommitdiff
path: root/libcaja-private
diff options
context:
space:
mode:
Diffstat (limited to 'libcaja-private')
-rw-r--r--libcaja-private/caja-icon-canvas-item.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/libcaja-private/caja-icon-canvas-item.c b/libcaja-private/caja-icon-canvas-item.c
index 64ba3020..e35efec2 100644
--- a/libcaja-private/caja-icon-canvas-item.c
+++ b/libcaja-private/caja-icon-canvas-item.c
@@ -1599,7 +1599,7 @@ draw_stretch_handles (CajaIconCanvasItem *item, GdkDrawable *drawable,
GtkWidget *widget;
GdkPixbuf *knob_pixbuf;
int knob_width, knob_height;
- double dash[2] = { 1.0, 1.0 };
+ double dash = { 2.0 };
cairo_t *cr;
if (!item->details->show_stretch_handles)
@@ -1615,17 +1615,9 @@ draw_stretch_handles (CajaIconCanvasItem *item, GdkDrawable *drawable,
knob_height = gdk_pixbuf_get_height (knob_pixbuf);
/* first draw the box */
- cairo_set_source_rgb (cr, 1, 1, 1);
- cairo_set_line_width (cr, 1.0);
- cairo_rectangle (cr,
- rect->x0 + 0.5,
- rect->y0 + 0.5,
- rect->x1 - rect->x0 - 1,
- rect->y1 - rect->y0 - 1);
- cairo_stroke (cr);
-
cairo_set_source_rgb (cr, 0, 0, 0);
- cairo_set_dash (cr, dash, G_N_ELEMENTS (dash), 0);
+ cairo_set_dash (cr, &dash, 1, 0);
+ cairo_set_line_width (cr, 1.0);
cairo_rectangle (cr,
rect->x0 + 0.5,
rect->y0 + 0.5,