mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-26 03:25:36 +00:00
d7a08db9f6
* 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
34 lines
728 B
C
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;
|
|
}
|
|
|