[seed] seed_canvas_update_fill/stroke style should return TRUE
- From: Robert Carr <racarr src gnome org>
- To: svn-commits-list gnome org
- Subject: [seed] seed_canvas_update_fill/stroke style should return TRUE
- Date: Tue, 14 Apr 2009 03:04:51 -0400 (EDT)
commit 74bed7a4a96556d9b90299c4301ff7b335afa835
Author: Robert Carr <racarr mireia (none)>
Date: Tue Apr 14 03:04:45 2009 -0400
seed_canvas_update_fill/stroke style should return TRUE
---
modules/canvas/seed-canvas.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/modules/canvas/seed-canvas.c b/modules/canvas/seed-canvas.c
index f6d82b4..672ff9f 100644
--- a/modules/canvas/seed-canvas.c
+++ b/modules/canvas/seed-canvas.c
@@ -288,7 +288,7 @@ seed_canvas_update_stroke_style (SeedContext ctx,
g_free(stroke_style);
- return FALSE;
+ return TRUE;
}
@@ -302,6 +302,7 @@ seed_canvas_update_fill_style (SeedContext ctx,
GET_CR;
gchar *fill_style = seed_value_to_string (ctx, value, e);
+ g_printf("Updating style to: %s \n", fill_style);
if (!priv->styles)
{
@@ -311,12 +312,13 @@ seed_canvas_update_fill_style (SeedContext ctx,
}
style = (SeedCanvasStyle *)priv->styles->data;
+
seed_canvas_parse_color (&style->fill, fill_style);
g_free(fill_style);
- return FALSE;
+ return TRUE;
}
gboolean
@@ -342,7 +344,7 @@ seed_canvas_update_global_alpha (SeedContext ctx,
style->global_opacity = global_alpha;
- return FALSE;
+ return TRUE;
}
gboolean
@@ -425,6 +427,7 @@ void
seed_canvas_apply_fill_style (SeedCanvasStyle *style,
cairo_t * cr)
{
+ g_printf("Applying fill style: %f %f %f %f \n", style->fill.r, style->fill.g, style->fill.b, style->fill.a * style->global_opacity);
cairo_set_source_rgba(cr,
style->fill.r,
style->fill.g,
@@ -894,7 +897,7 @@ seed_canvas_showpage (SeedContext ctx,
SeedObject this_object,
size_t argument_count,
const SeedValue arguments[], SeedException * exception)
-{
+ {
GET_CR;
cairo_show_page (cr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]