From: Luca Bruno Date: Sun, 29 Jan 2012 15:26:08 +0000 (+0100) Subject: cogl-1.0: Use a static method instead of a constructor for Cogl.Path X-Git-Tag: 0.15.2~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ee5e1969d5046aef520d4feb3d055b95374b5dc;p=thirdparty%2Fvala.git cogl-1.0: Use a static method instead of a constructor for Cogl.Path The Cogl.Path constructor never worked, use a static method instead. --- diff --git a/vapi/cogl-1.0.vapi b/vapi/cogl-1.0.vapi index d4d9db807..6e6b51c14 100644 --- a/vapi/cogl-1.0.vapi +++ b/vapi/cogl-1.0.vapi @@ -159,8 +159,6 @@ namespace Cogl { [CCode (cheader_filename = "cogl/cogl.h", copy_function = "cogl_path_copy")] [Compact] public class Path { - [CCode (has_construct_function = false, type = "void")] - public Path (); public static void arc (float center_x, float center_y, float radius_x, float radius_y, float angle_1, float angle_2); public static void close (); public unowned Cogl.Path copy (); @@ -173,6 +171,7 @@ namespace Cogl { public static void line (float x_1, float y_1, float x_2, float y_2); public static void line_to (float x, float y); public static void move_to (float x, float y); + public static void @new (); public static void polygon ([CCode (array_length = false)] float[] coords, int num_points); public static void polyline ([CCode (array_length = false)] float[] coords, int num_points); public static void rectangle (float x_1, float y_1, float x_2, float y_2); diff --git a/vapi/packages/cogl-1.0/cogl-1.0-custom.vala b/vapi/packages/cogl-1.0/cogl-1.0-custom.vala index b355de71f..e894be46f 100644 --- a/vapi/packages/cogl-1.0/cogl-1.0-custom.vala +++ b/vapi/packages/cogl-1.0/cogl-1.0-custom.vala @@ -105,6 +105,12 @@ namespace Cogl { public static void push_draw_buffer (); } + [CCode (cheader_filename = "cogl/cogl.h", copy_function = "cogl_path_copy")] + [Compact] + public class Path { + public static void @new (); + } + [Compact] public class PixelBuffer: Handle { public PixelBuffer (uint size); diff --git a/vapi/packages/cogl-1.0/cogl-1.0.metadata b/vapi/packages/cogl-1.0/cogl-1.0.metadata index 47f9c779f..5ddf1fc58 100644 --- a/vapi/packages/cogl-1.0/cogl-1.0.metadata +++ b/vapi/packages/cogl-1.0/cogl-1.0.metadata @@ -120,6 +120,7 @@ cogl_material_layer_get_type hidden="1" cogl_offscreen_* hidden="1" +cogl_path_new hidden="1" cogl_path_polygon.coords is_array="1" no_array_length="1" cogl_path_polyline.coords is_array="1" no_array_length="1"