]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
clutter-1.0: Fix constructors which weren't detected as such
authorRico Tzschichholz <ricotz@ubuntu.com>
Sat, 8 Oct 2016 21:28:17 +0000 (23:28 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sat, 8 Oct 2016 21:28:17 +0000 (23:28 +0200)
vapi/clutter-1.0.vapi
vapi/metadata/Clutter-1.0.metadata

index 3b6460bcd1013fb4797db9b7243bdf383936351a..4b769df04365103fcb5f031ca6223f30575a706f 100644 (file)
@@ -5960,11 +5960,10 @@ namespace Clutter {
        [CCode (cheader_filename = "clutter/clutter.h", type_id = "clutter_canvas_get_type ()")]
        [Version (since = "1.10")]
        public class Canvas : GLib.Object, Clutter.Content {
-               [CCode (has_construct_function = false)]
-               protected Canvas ();
+               [CCode (has_construct_function = false, type = "ClutterContent*")]
+               public Canvas ();
                [Version (since = "1.18")]
                public int get_scale_factor ();
-               public static Clutter.Content @new ();
                [Version (since = "1.18")]
                public void set_scale_factor (int scale);
                public bool set_size (int width, int height);
@@ -6448,9 +6447,8 @@ namespace Clutter {
        [CCode (cheader_filename = "clutter/clutter.h", type_id = "clutter_image_get_type ()")]
        [Version (since = "1.10")]
        public class Image : GLib.Object, Clutter.Content {
-               [CCode (has_construct_function = false)]
-               protected Image ();
-               public static Clutter.Content @new ();
+               [CCode (has_construct_function = false, type = "ClutterContent*")]
+               public Image ();
                public bool set_area ([CCode (array_length = false)] uint8[] data, Cogl.PixelFormat pixel_format, Cairo.RectangleInt rect, uint row_stride) throws GLib.Error;
                [Version (since = "1.12")]
                public bool set_bytes (GLib.Bytes data, Cogl.PixelFormat pixel_format, uint width, uint height, uint row_stride) throws GLib.Error;
index 77e1611219fcfda134ae30502e83762f6a54c145..ca27a527abcd2f5e6f664a07ec0565891a128ad1 100644 (file)
@@ -16,7 +16,11 @@ Actor
        .apply_transform.matrix ref
        .get_abs_allocation_vertices.verts out=false
        .get_allocation_vertices.verts out=false
+Canvas
+       .new symbol_type="constructor"
 Event.type#method name="get_type"
+Image
+       .new symbol_type="constructor"
 
 // ???
 Actor.has_pointer#method name="get_has_pointer"