From: Rico Tzschichholz Date: Sat, 8 Oct 2016 21:28:17 +0000 (+0200) Subject: clutter-1.0: Fix constructors which weren't detected as such X-Git-Tag: 0.35.1~104 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22ee9f66c456b11f0ce9d3a0d1a8bdf04df64b3c;p=thirdparty%2Fvala.git clutter-1.0: Fix constructors which weren't detected as such --- diff --git a/vapi/clutter-1.0.vapi b/vapi/clutter-1.0.vapi index 3b6460bcd..4b769df04 100644 --- a/vapi/clutter-1.0.vapi +++ b/vapi/clutter-1.0.vapi @@ -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; diff --git a/vapi/metadata/Clutter-1.0.metadata b/vapi/metadata/Clutter-1.0.metadata index 77e161121..ca27a527a 100644 --- a/vapi/metadata/Clutter-1.0.metadata +++ b/vapi/metadata/Clutter-1.0.metadata @@ -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"