]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
cogl-1.0: Use a static method instead of a constructor for Cogl.Path
authorLuca Bruno <lucabru@src.gnome.org>
Sun, 29 Jan 2012 15:26:08 +0000 (16:26 +0100)
committerLuca Bruno <lucabru@src.gnome.org>
Sun, 29 Jan 2012 15:35:07 +0000 (16:35 +0100)
The Cogl.Path constructor never worked, use a static method instead.

vapi/cogl-1.0.vapi
vapi/packages/cogl-1.0/cogl-1.0-custom.vala
vapi/packages/cogl-1.0/cogl-1.0.metadata

index d4d9db80756547ad18f2845a7f88b439e2f4887b..6e6b51c145169db047b171ec2254abb79df63597 100644 (file)
@@ -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);
index b355de71f8e370cc9425dd55692063c3ed5ab697..e894be46f6bfa24602f3ff827e0efe733c3f82b7 100644 (file)
@@ -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);
index 47f9c779fd118f9bc8f6667eef147d3706b9aba8..5ddf1fc585dc816762726f11884c222ea4d288d7 100644 (file)
@@ -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"