[nautilus] icon-canvas-item: tweak the resize bounding box color according to style



commit 41b91ea64d9731a48ffab621e293f7ff05d88acd
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Dec 1 18:17:58 2010 +0100

    icon-canvas-item: tweak the resize bounding box color according to style

 libnautilus-private/nautilus-icon-canvas-item.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/libnautilus-private/nautilus-icon-canvas-item.c b/libnautilus-private/nautilus-icon-canvas-item.c
index 8e9114e..77a546f 100644
--- a/libnautilus-private/nautilus-icon-canvas-item.c
+++ b/libnautilus-private/nautilus-icon-canvas-item.c
@@ -1368,12 +1368,14 @@ draw_stretch_handles (NautilusIconCanvasItem *item,
 	GdkPixbuf *knob_pixbuf;
 	int knob_width, knob_height;
 	double dash = { 2.0 };
+	GtkStyle *style;
 
 	if (!item->details->show_stretch_handles) {
 		return;
 	}
 
 	widget = GTK_WIDGET (EEL_CANVAS_ITEM (item)->canvas);
+	style = gtk_widget_get_style (widget);
 
         cairo_save (cr);
 	knob_pixbuf = get_knob_pixbuf ();
@@ -1381,7 +1383,7 @@ draw_stretch_handles (NautilusIconCanvasItem *item,
 	knob_height = gdk_pixbuf_get_height (knob_pixbuf);
 
 	/* first draw the box */
-	cairo_set_source_rgb (cr, 0, 0, 0);
+	gdk_cairo_set_source_color (cr, &style->fg[3]);
 	cairo_set_dash (cr, &dash, 1, 0);
 	cairo_set_line_width (cr, 1.0);
 	cairo_rectangle (cr,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]