[cairo-commit] goocanvas/src goocanvaspath.c, 1.6, 1.7 goocanvaspath.h, 1.4, 1.5 goocanvaspathview.c, 1.10, 1.11 goocanvaspolyline.h, 1.3, 1.4

Damon Chaplin commit at pdx.freedesktop.org
Thu Oct 12 03:33:30 PDT 2006


Committed by: damon

Update of /cvs/cairo/goocanvas/src
In directory kemper:/tmp/cvs-serv14634/src

Modified Files:
	goocanvaspath.c goocanvaspath.h goocanvaspathview.c 
	goocanvaspolyline.h 
Log Message:
2006-10-12  Damon Chaplin  <damon at gnome.org>

	* src/goocanvaspolyline.h (struct _GooCanvasPoints): use a separate
	typedef declaration for the struct, to help C++ bindings. From Paul
	Davis.

	* src/goocanvaspath.c (goo_canvas_path_new): use 'const' for the
	path_data argument. From Paul Davis.

	* src/goocanvaspathview.c (goo_canvas_path_view_create_path): init
	last_control_point_x/y to avoid compiler warning.



Index: goocanvaspath.c
===================================================================
RCS file: /cvs/cairo/goocanvas/src/goocanvaspath.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- goocanvaspath.c	24 Aug 2006 08:06:23 -0000	1.6
+++ goocanvaspath.c	12 Oct 2006 10:33:27 -0000	1.7
@@ -431,7 +431,7 @@
  **/
 GooCanvasItem*
 goo_canvas_path_new               (GooCanvasItem *parent,
-				   gchar         *path_data,
+				   const gchar   *path_data,
 				   ...)
 {
   GooCanvasItem *item;

Index: goocanvaspath.h
===================================================================
RCS file: /cvs/cairo/goocanvas/src/goocanvaspath.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- goocanvaspath.h	14 Apr 2006 16:59:04 -0000	1.4
+++ goocanvaspath.h	12 Oct 2006 10:33:27 -0000	1.5
@@ -138,7 +138,7 @@
 
 GType           goo_canvas_path_get_type          (void) G_GNUC_CONST;
 GooCanvasItem*  goo_canvas_path_new               (GooCanvasItem *parent,
-						   gchar         *path_data,
+						   const gchar   *path_data,
 						   ...);
 
 

Index: goocanvaspathview.c
===================================================================
RCS file: /cvs/cairo/goocanvas/src/goocanvaspathview.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- goocanvaspathview.c	24 Aug 2006 08:06:23 -0000	1.10
+++ goocanvaspathview.c	12 Oct 2006 10:33:27 -0000	1.11
@@ -416,7 +416,7 @@
   GooCanvasPathCommand *cmd;
   GooCanvasPathCommandType prev_cmd_type = GOO_CANVAS_PATH_CLOSE_PATH;
   gdouble x = 0, y = 0, path_start_x = 0, path_start_y = 0;
-  gdouble last_control_point_x, last_control_point_y;
+  gdouble last_control_point_x = 0.0, last_control_point_y = 0.0;
   gint i;
 
   cairo_new_path (cr);

Index: goocanvaspolyline.h
===================================================================
RCS file: /cvs/cairo/goocanvas/src/goocanvaspolyline.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- goocanvaspolyline.h	14 Apr 2006 12:49:11 -0000	1.3
+++ goocanvaspolyline.h	12 Oct 2006 10:33:27 -0000	1.4
@@ -21,11 +21,13 @@
  *
  * #GooCairoPoints represents an array of points.
  */
-typedef struct {
+typedef struct _GooCanvasPoints GooCanvasPoints;
+struct _GooCanvasPoints
+{
   double *coords;
   int num_points;
   int ref_count;
-} GooCanvasPoints;
+};
 
 #define GOO_TYPE_CANVAS_POINTS goo_canvas_points_get_type()
 GType            goo_canvas_points_get_type (void);



More information about the cairo-commit mailing list