[nautilus] [ln-p] properly dash the icon when resizing it
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] [ln-p] properly dash the icon when resizing it
- Date: Fri, 13 Aug 2010 17:00:51 +0000 (UTC)
commit b10d8c00395026719dc0840e9d82e682c7c4e436
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Fri Aug 13 18:33:13 2010 +0200
[ln-p] properly dash the icon when resizing it
libnautilus-private/nautilus-icon-canvas-item.c | 14 +++-----------
1 files changed, 3 insertions(+), 11 deletions(-)
---
diff --git a/libnautilus-private/nautilus-icon-canvas-item.c b/libnautilus-private/nautilus-icon-canvas-item.c
index 13e301e..49fca4f 100644
--- a/libnautilus-private/nautilus-icon-canvas-item.c
+++ b/libnautilus-private/nautilus-icon-canvas-item.c
@@ -1482,7 +1482,7 @@ draw_stretch_handles (NautilusIconCanvasItem *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) {
@@ -1497,17 +1497,9 @@ draw_stretch_handles (NautilusIconCanvasItem *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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]