GtkSharp/glue/canvaspoints.c
Gonzalo Paniagua Javier d7a08db9f6 2003-03-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* glue/adjustment.c:
	* glue/canvaspoints.c:
	* glue/clipboard.c:
	* glue/colorseldialog.c:
	* glue/combo.c:
	* glue/dialog.c:
	* glue/error.c:
	* glue/event.c:
	* glue/fileselection.c:
	* glue/list.c:
	* glue/object.c:
	* glue/paned.c:
	* glue/program.c:
	* glue/slist.c:
	* glue/style.c:
	* glue/type.c:
	* glue/value.c:
	* glue/widget.c: removed almost all the warnings.

svn path=/trunk/gtk-sharp/; revision=12751
2003-03-22 17:37:43 +00:00

34 lines
728 B
C

/* canvaspoints.c : Custom ctor for a CanvasPoints struct.
*
* Author: Rachel Hestilow <hestilow@ximian.com>
*
* <c> 2002 Rachel Hestilow
*/
#include <libgnomecanvas/gnome-canvas.h>
#include <libgnomecanvas/gnome-canvas-util.h>
/* Forward declarations */
GnomeCanvasPoints *gtksharp_gnome_canvas_points_new_from_array (guint num_points,
double *coords);
/* */
GnomeCanvasPoints*
gtksharp_gnome_canvas_points_new_from_array (guint num_points, double *coords)
{
int i, len;
GnomeCanvasPoints *pts = gnome_canvas_points_new (num_points);
g_print ("{");
len = num_points * 2;
for (i = 0; i < len; i++) {
pts->coords[i] = coords[i];
g_print ("%f ", pts->coords[i]);
}
g_print ("}\n");
return pts;
}