[cairo-commit] goocanvas/demo demo.c,1.7,1.8
Damon Chaplin
commit at pdx.freedesktop.org
Mon Sep 11 04:09:17 PDT 2006
Committed by: damon
Update of /cvs/cairo/goocanvas/demo
In directory kemper:/tmp/cvs-serv5050/demo
Modified Files:
demo.c
Log Message:
2006-09-11 Damon Chaplin <damon at gnome.org>
* src/goocanvaspolylineview.c: be more careful about using points and
arrow data.
* demo/demo.c (setup_lines): add checks for polylines with 0 and 1
points.
* configure.in: require GTK+ 2.10.0, for GtkUnit (Gian Mario
Tagliaretti).
Index: demo.c
===================================================================
RCS file: /cvs/cairo/goocanvas/demo/demo.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- demo.c 1 Jun 2006 09:59:24 -0000 1.7
+++ demo.c 11 Sep 2006 11:09:15 -0000 1.8
@@ -844,7 +844,7 @@
static void
setup_lines (GooCanvasItem *root)
{
- GooCanvasItem *polyline1, *polyline2, *polyline3;
+ GooCanvasItem *polyline1, *polyline2, *polyline3, *polyline4, *polyline5;
polish_diamond (root);
make_hilbert (root);
@@ -888,6 +888,17 @@
"arrow-length", 6.0,
"arrow-width", 6.0,
NULL);
+
+ /* Test polyline without any coords. */
+ polyline4 = goo_canvas_polyline_new (root, FALSE, 0,
+ NULL);
+
+ /* Test polyline with 1 coord and arrows. */
+ polyline5 = goo_canvas_polyline_new (root, FALSE, 1,
+ 356.0, 220.0,
+ "start-arrow", TRUE,
+ "end-arrow", TRUE,
+ NULL);
}
More information about the cairo-commit
mailing list