[goocanvas/new-api] 2010-06-28 Damon Chaplin <damon gnome org>
- From: Damon Chaplin <damon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goocanvas/new-api] 2010-06-28 Damon Chaplin <damon gnome org>
- Date: Mon, 28 Jun 2010 18:48:05 +0000 (UTC)
commit 394ae70c6b6df82bff4f8383bbd1962c7f28cee9
Author: Damon Chaplin <damon gnome org>
Date: Mon Jun 28 12:43:51 2010 +0100
2010-06-28 Damon Chaplin <damon gnome org>
* src/goocanvasitemsimple.c:
(goo_canvas_item_simple_paint_path): removed "add_tolerance" argument
as it is never needed for painting.
ChangeLog | 6 ++++++
demo/demo-large-rect.c | 2 +-
src/goocanvasitemsimple.c | 7 +++----
src/goocanvasitemsimple.h | 3 +--
src/goocanvaspolyline.c | 2 +-
5 files changed, 12 insertions(+), 8 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 92923bf..dbcc0fd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2010-06-28 Damon Chaplin <damon gnome org>
+ * src/goocanvasitemsimple.c:
+ (goo_canvas_item_simple_paint_path): removed "add_tolerance" argument
+ as it is never needed for painting.
+
+2010-06-28 Damon Chaplin <damon gnome org>
+
* docs/goocanvas-sections.txt:
* src/goocanvasitemsimple.c:
* src/goocanvasitemsimple.h: update docs.
diff --git a/demo/demo-large-rect.c b/demo/demo-large-rect.c
index 2a3ce19..8caea3a 100644
--- a/demo/demo-large-rect.c
+++ b/demo/demo-large-rect.c
@@ -160,7 +160,7 @@ goo_demo_large_rect_paint (GooCanvasItemSimple *simple,
line_width = goo_canvas_item_simple_get_line_width (simple);
create_large_rect_path (item, cr, bounds, line_width,
item->x, item->y, item->width, item->height);
- goo_canvas_item_simple_paint_path (simple, cr, FALSE);
+ goo_canvas_item_simple_paint_path (simple, cr);
}
diff --git a/src/goocanvasitemsimple.c b/src/goocanvasitemsimple.c
index 976ac08..69ce68b 100644
--- a/src/goocanvasitemsimple.c
+++ b/src/goocanvasitemsimple.c
@@ -1209,7 +1209,7 @@ goo_canvas_item_simple_default_paint (GooCanvasItemSimple *simple,
GooCanvasItemSimpleClass *class = GOO_CANVAS_ITEM_SIMPLE_GET_CLASS (simple);
class->simple_create_path (simple, cr);
- goo_canvas_item_simple_paint_path (simple, cr, FALSE);
+ goo_canvas_item_simple_paint_path (simple, cr);
}
@@ -1251,13 +1251,12 @@ goo_canvas_item_simple_query_tooltip (GooCanvasItem *item,
**/
void
goo_canvas_item_simple_paint_path (GooCanvasItemSimple *simple,
- cairo_t *cr,
- gboolean add_tolerance)
+ cairo_t *cr)
{
if (goo_canvas_item_simple_set_fill_options (simple, cr))
cairo_fill_preserve (cr);
- if (goo_canvas_item_simple_set_stroke_options (simple, cr, add_tolerance))
+ if (goo_canvas_item_simple_set_stroke_options (simple, cr, FALSE))
cairo_stroke (cr);
cairo_new_path (cr);
diff --git a/src/goocanvasitemsimple.h b/src/goocanvasitemsimple.h
index 21a27e6..700b5a9 100644
--- a/src/goocanvasitemsimple.h
+++ b/src/goocanvasitemsimple.h
@@ -156,8 +156,7 @@ gboolean goo_canvas_item_simple_check_in_path (GooCanvasItemSimple *item,
GooCanvasPointerEvents pointer_events,
gboolean add_tolerance);
void goo_canvas_item_simple_paint_path (GooCanvasItemSimple *item,
- cairo_t *cr,
- gboolean add_tolerance);
+ cairo_t *cr);
void goo_canvas_item_simple_changed (GooCanvasItemSimple *item,
gboolean recompute_bounds);
diff --git a/src/goocanvaspolyline.c b/src/goocanvaspolyline.c
index cbea020..8fa4028 100644
--- a/src/goocanvaspolyline.c
+++ b/src/goocanvaspolyline.c
@@ -880,7 +880,7 @@ goo_canvas_polyline_paint (GooCanvasItemSimple *simple,
return;
goo_canvas_polyline_create_path (polyline, cr);
- goo_canvas_item_simple_paint_path (simple, cr, FALSE);
+ goo_canvas_item_simple_paint_path (simple, cr);
/* Paint the arrows, if required. */
if ((polyline->start_arrow || polyline->end_arrow)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]