From b6cc0f11b8607ef713300f384e279d7ffa4f2abb Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Thu, 21 Oct 2010 01:54:35 +0200 Subject: gnome-canvas: Use gdk_parse_color() in GnomeCanvasShape We don't want to allocate colors anymore. It's not needed with cairo. --- libgnomecanvas/gnome-canvas-shape.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libgnomecanvas') diff --git a/libgnomecanvas/gnome-canvas-shape.c b/libgnomecanvas/gnome-canvas-shape.c index 334eff8b77..a2ff712085 100644 --- a/libgnomecanvas/gnome-canvas-shape.c +++ b/libgnomecanvas/gnome-canvas-shape.c @@ -249,7 +249,8 @@ gnome_canvas_shape_set_property (GObject *object, switch (param_id) { case PROP_FILL_COLOR: - if (gnome_canvas_get_color (item->canvas, g_value_get_string (value), &color)) { + if (g_value_get_string (value) && + gdk_color_parse (g_value_get_string (value), &color)) { priv->fill_set = TRUE; priv->fill_rgba = get_rgba_from_color (&color); } else if (priv->fill_set) @@ -281,7 +282,8 @@ gnome_canvas_shape_set_property (GObject *object, break; case PROP_OUTLINE_COLOR: - if (gnome_canvas_get_color (item->canvas, g_value_get_string (value), &color)) { + if (g_value_get_string (value) && + gdk_color_parse (g_value_get_string (value), &color)) { priv->outline_set = TRUE; priv->outline_rgba = get_rgba_from_color (&color); } else if (priv->outline_set) -- cgit v1.2.3