diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2019-10-08 14:05:17 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2019-10-08 17:00:29 +0200 |
commit | d66616cf698f15279ccd034585c52d0c2b08d15a (patch) | |
tree | 975979404dc057b524ed10bba8d32067b4d685fd | |
parent | 50b1409da5e52cd0c4ea7da1902e0517e4753181 (diff) | |
download | vala-d66616cf698f15279ccd034585c52d0c2b08d15a.tar.gz |
Regenerate GIR-based bindings to pick up copy/free attributes
Fixes https://gitlab.gnome.org/GNOME/vala/issues/863
-rw-r--r-- | vapi/atk.vapi | 2 | ||||
-rw-r--r-- | vapi/atspi-2.vapi | 2 | ||||
-rw-r--r-- | vapi/clutter-1.0.vapi | 30 | ||||
-rw-r--r-- | vapi/gdk-3.0.vapi | 6 | ||||
-rw-r--r-- | vapi/goocanvas-2.0.vapi | 2 | ||||
-rw-r--r-- | vapi/graphene-1.0.vapi | 34 | ||||
-rw-r--r-- | vapi/gtk+-3.0.vapi | 10 | ||||
-rw-r--r-- | vapi/gtk4.vapi | 12 | ||||
-rw-r--r-- | vapi/pango.vapi | 6 | ||||
-rw-r--r-- | vapi/poppler-glib.vapi | 2 |
10 files changed, 53 insertions, 53 deletions
diff --git a/vapi/atk.vapi b/vapi/atk.vapi index 7f8dc3b64..8a83978b7 100644 --- a/vapi/atk.vapi +++ b/vapi/atk.vapi @@ -582,7 +582,7 @@ namespace Atk { public GLib.Value old_value; public GLib.Value new_value; } - [CCode (cheader_filename = "atk/atk.h", type_id = "atk_rectangle_get_type ()")] + [CCode (cheader_filename = "atk/atk.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "atk_rectangle_get_type ()")] public struct Rectangle { public int x; public int y; diff --git a/vapi/atspi-2.vapi b/vapi/atspi-2.vapi index e0453309d..956a8fee8 100644 --- a/vapi/atspi-2.vapi +++ b/vapi/atspi-2.vapi @@ -398,7 +398,7 @@ namespace Atspi { [SimpleType] public struct ControllerEventMask : uint { } - [CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_device_event_get_type ()")] + [CCode (cheader_filename = "atspi/atspi.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "atspi_device_event_get_type ()")] public struct DeviceEvent { public Atspi.EventType type; public uint id; diff --git a/vapi/clutter-1.0.vapi b/vapi/clutter-1.0.vapi index fac3b85ab..5efd024e5 100644 --- a/vapi/clutter-1.0.vapi +++ b/vapi/clutter-1.0.vapi @@ -8097,7 +8097,7 @@ namespace Clutter { [NoWrapper] public abstract void unrealize (); } - [CCode (cheader_filename = "clutter/clutter.h", type_id = "clutter_actor_box_get_type ()")] + [CCode (cheader_filename = "clutter/clutter.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "clutter_actor_box_get_type ()")] public struct ActorBox { public float x1; public float y1; @@ -8155,7 +8155,7 @@ namespace Clutter { public bool prev (out unowned Clutter.Actor child); public void remove (); } - [CCode (cheader_filename = "clutter/clutter.h", type_id = "CLUTTER_TYPE_COLOR")] + [CCode (cheader_filename = "clutter/clutter.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "CLUTTER_TYPE_COLOR")] public struct Color { public uint8 red; public uint8 green; @@ -8195,13 +8195,13 @@ namespace Clutter { [Version (since = "0.2")] public string to_string (); } - [CCode (cheader_filename = "clutter/clutter.h", type_id = "clutter_fog_get_type ()")] + [CCode (cheader_filename = "clutter/clutter.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "clutter_fog_get_type ()")] [Version (deprecated = true, deprecated_since = "1.10", since = "0.6")] public struct Fog { public float z_near; public float z_far; } - [CCode (cheader_filename = "clutter/clutter.h", type_id = "clutter_geometry_get_type ()")] + [CCode (cheader_filename = "clutter/clutter.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "clutter_geometry_get_type ()")] [Version (deprecated = true, deprecated_since = "1.16")] public struct Geometry { public int x; @@ -8213,7 +8213,7 @@ namespace Clutter { [Version (since = "1.4")] public Clutter.Geometry union (Clutter.Geometry geometry_b); } - [CCode (cheader_filename = "clutter/clutter.h", type_id = "clutter_knot_get_type ()")] + [CCode (cheader_filename = "clutter/clutter.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "clutter_knot_get_type ()")] [Version (since = "0.2")] public struct Knot { public int x; @@ -8222,7 +8222,7 @@ namespace Clutter { public bool equal (Clutter.Knot knot_b); public void free (); } - [CCode (cheader_filename = "clutter/clutter.h", type_id = "clutter_margin_get_type ()")] + [CCode (cheader_filename = "clutter/clutter.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "clutter_margin_get_type ()")] [Version (since = "1.10")] public struct Margin { public float left; @@ -8232,7 +8232,7 @@ namespace Clutter { public Clutter.Margin? copy (); public void free (); } - [CCode (cheader_filename = "clutter/clutter.h", type_id = "clutter_matrix_get_type ()")] + [CCode (cheader_filename = "clutter/clutter.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "clutter_matrix_get_type ()")] [Version (since = "1.12")] public struct Matrix : Cogl.Matrix { public static Clutter.Matrix? alloc (); @@ -8241,7 +8241,7 @@ namespace Clutter { public unowned Clutter.Matrix? init_from_matrix (Clutter.Matrix b); public unowned Clutter.Matrix? init_identity (); } - [CCode (cheader_filename = "clutter/clutter.h", type_id = "clutter_paint_volume_get_type ()")] + [CCode (cheader_filename = "clutter/clutter.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "clutter_paint_volume_get_type ()")] [Version (since = "1.4")] public struct PaintVolume { [Version (since = "1.6")] @@ -8271,7 +8271,7 @@ namespace Clutter { [Version (since = "1.10")] public void union_box (Clutter.ActorBox box); } - [CCode (cheader_filename = "clutter/clutter.h", type_id = "clutter_path_node_get_type ()")] + [CCode (cheader_filename = "clutter/clutter.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "clutter_path_node_get_type ()")] [Version (since = "1.0")] public struct PathNode { public Clutter.PathNodeType type; @@ -8281,7 +8281,7 @@ namespace Clutter { public bool equal (Clutter.PathNode node_b); public void free (); } - [CCode (cheader_filename = "clutter/clutter.h", type_id = "clutter_perspective_get_type ()")] + [CCode (cheader_filename = "clutter/clutter.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "clutter_perspective_get_type ()")] [Version (since = "0.4")] public struct Perspective { public float fovy; @@ -8289,7 +8289,7 @@ namespace Clutter { public float z_near; public float z_far; } - [CCode (cheader_filename = "clutter/clutter.h", type_id = "clutter_point_get_type ()")] + [CCode (cheader_filename = "clutter/clutter.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "clutter_point_get_type ()")] [Version (since = "1.12")] public struct Point { public float x; @@ -8302,7 +8302,7 @@ namespace Clutter { public unowned Clutter.Point? init (float x, float y); public static unowned Clutter.Point? zero (); } - [CCode (cheader_filename = "clutter/clutter.h", type_id = "clutter_rect_get_type ()")] + [CCode (cheader_filename = "clutter/clutter.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "clutter_rect_get_type ()")] [Version (since = "1.12")] public struct Rect { public Clutter.Point origin; @@ -8327,7 +8327,7 @@ namespace Clutter { public Clutter.Rect union (Clutter.Rect b); public static unowned Clutter.Rect? zero (); } - [CCode (cheader_filename = "clutter/clutter.h", type_id = "clutter_size_get_type ()")] + [CCode (cheader_filename = "clutter/clutter.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "clutter_size_get_type ()")] [Version (since = "1.12")] public struct Size { public float width; @@ -8337,7 +8337,7 @@ namespace Clutter { public bool equals (Clutter.Size b); public void free (); } - [CCode (cheader_filename = "clutter/clutter.h", type_id = "CLUTTER_TYPE_UNITS")] + [CCode (cheader_filename = "clutter/clutter.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "CLUTTER_TYPE_UNITS")] [Version (since = "1.0")] public struct Units { public Clutter.Units? copy (); @@ -8361,7 +8361,7 @@ namespace Clutter { public float to_pixels (); public string to_string (); } - [CCode (cheader_filename = "clutter/clutter.h", type_id = "clutter_vertex_get_type ()")] + [CCode (cheader_filename = "clutter/clutter.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "clutter_vertex_get_type ()")] [Version (since = "0.4")] public struct Vertex { public float x; diff --git a/vapi/gdk-3.0.vapi b/vapi/gdk-3.0.vapi index 7d30e3aee..568eff5fe 100644 --- a/vapi/gdk-3.0.vapi +++ b/vapi/gdk-3.0.vapi @@ -5930,7 +5930,7 @@ namespace Gdk { public static Gdk.Atom intern_static_string (string atom_name); public string name (); } - [CCode (cheader_filename = "gdk/gdk.h", type_id = "gdk_color_get_type ()")] + [CCode (cheader_filename = "gdk/gdk.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gdk_color_get_type ()")] [Version (deprecated = true, deprecated_since = "3.14")] public struct Color { public uint32 pixel; @@ -5970,7 +5970,7 @@ namespace Gdk { public int x; public int y; } - [CCode (cheader_filename = "gdk/gdk.h", type_id = "gdk_rgba_get_type ()")] + [CCode (cheader_filename = "gdk/gdk.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gdk_rgba_get_type ()")] public struct RGBA { public double red; public double green; @@ -5989,7 +5989,7 @@ namespace Gdk { [Version (since = "3.0")] public string to_string (); } - [CCode (cheader_filename = "gdk/gdk.h", type_id = "gdk_rectangle_get_type ()")] + [CCode (cheader_filename = "gdk/gdk.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gdk_rectangle_get_type ()")] public struct Rectangle : Cairo.RectangleInt { [Version (since = "3.20")] public bool equal (Gdk.Rectangle rect2); diff --git a/vapi/goocanvas-2.0.vapi b/vapi/goocanvas-2.0.vapi index 957e49f96..1a05faa06 100644 --- a/vapi/goocanvas-2.0.vapi +++ b/vapi/goocanvas-2.0.vapi @@ -934,7 +934,7 @@ namespace Goo { public virtual signal void child_notify (GLib.ParamSpec pspec); public virtual signal void child_removed (int child_num); } - [CCode (cheader_filename = "goocanvas.h", type_id = "goo_canvas_bounds_get_type ()")] + [CCode (cheader_filename = "goocanvas.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "goo_canvas_bounds_get_type ()")] public struct CanvasBounds { public double x1; public double y1; diff --git a/vapi/graphene-1.0.vapi b/vapi/graphene-1.0.vapi index 026aceaa0..4a66c3f6d 100644 --- a/vapi/graphene-1.0.vapi +++ b/vapi/graphene-1.0.vapi @@ -2,7 +2,7 @@ [CCode (cprefix = "Graphene", gir_namespace = "Graphene", gir_version = "1.0", lower_case_cprefix = "graphene_")] namespace Graphene { - [CCode (cheader_filename = "graphene-gobject.h", cname = "graphene_box_t", type_id = "graphene_box_get_type ()")] + [CCode (cheader_filename = "graphene-gobject.h", cname = "graphene_box_t", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "graphene_box_get_type ()")] [Version (since = "1.2")] public struct Box { public bool contains_box (Graphene.Box b); @@ -34,7 +34,7 @@ namespace Graphene { public Graphene.Box union (Graphene.Box b); public static unowned Graphene.Box? zero (); } - [CCode (cheader_filename = "graphene-gobject.h", cname = "graphene_euler_t", type_id = "graphene_euler_get_type ()")] + [CCode (cheader_filename = "graphene-gobject.h", cname = "graphene_euler_t", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "graphene_euler_get_type ()")] [Version (since = "1.2")] public struct Euler { public bool equal (Graphene.Euler b); @@ -52,7 +52,7 @@ namespace Graphene { public Graphene.Matrix to_matrix (); public Graphene.Vec3 to_vec3 (); } - [CCode (cheader_filename = "graphene-gobject.h", cname = "graphene_frustum_t", type_id = "graphene_frustum_get_type ()")] + [CCode (cheader_filename = "graphene-gobject.h", cname = "graphene_frustum_t", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "graphene_frustum_get_type ()")] [Version (since = "1.2")] public struct Frustum { public bool contains_point (Graphene.Point3D point); @@ -65,7 +65,7 @@ namespace Graphene { public bool intersects_box (Graphene.Box box); public bool intersects_sphere (Graphene.Sphere sphere); } - [CCode (cheader_filename = "graphene-gobject.h", cname = "graphene_matrix_t", type_id = "graphene_matrix_get_type ()")] + [CCode (cheader_filename = "graphene-gobject.h", cname = "graphene_matrix_t", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "graphene_matrix_get_type ()")] public struct Matrix { [Version (since = "1.0")] public float determinant (); @@ -196,7 +196,7 @@ namespace Graphene { [Version (since = "1.0")] public bool untransform_point (Graphene.Point p, Graphene.Rect bounds, out Graphene.Point res); } - [CCode (cheader_filename = "graphene-gobject.h", cname = "graphene_plane_t", type_id = "graphene_plane_get_type ()")] + [CCode (cheader_filename = "graphene-gobject.h", cname = "graphene_plane_t", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "graphene_plane_get_type ()")] [Version (since = "1.2")] public struct Plane { public float distance (Graphene.Point3D point); @@ -211,7 +211,7 @@ namespace Graphene { public Graphene.Plane negate (); public Graphene.Plane normalize (); } - [CCode (cheader_filename = "graphene-gobject.h", cname = "graphene_point_t", type_id = "graphene_point_get_type ()")] + [CCode (cheader_filename = "graphene-gobject.h", cname = "graphene_point_t", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "graphene_point_get_type ()")] [Version (since = "1.0")] public struct Point { public float x; @@ -228,7 +228,7 @@ namespace Graphene { public Graphene.Vec2 to_vec2 (); public static unowned Graphene.Point? zero (); } - [CCode (cheader_filename = "graphene-gobject.h", cname = "graphene_point3d_t", lower_case_csuffix = "point3d", type_id = "graphene_point3d_get_type ()")] + [CCode (cheader_filename = "graphene-gobject.h", cname = "graphene_point3d_t", copy_function = "g_boxed_copy", free_function = "g_boxed_free", lower_case_csuffix = "point3d", type_id = "graphene_point3d_get_type ()")] [Version (since = "1.0")] public struct Point3D { public float x; @@ -252,7 +252,7 @@ namespace Graphene { public Graphene.Vec3 to_vec3 (); public static unowned Graphene.Point3D? zero (); } - [CCode (cheader_filename = "graphene-gobject.h", cname = "graphene_quad_t", type_id = "graphene_quad_get_type ()")] + [CCode (cheader_filename = "graphene-gobject.h", cname = "graphene_quad_t", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "graphene_quad_get_type ()")] [Version (since = "1.0")] public struct Quad { public Graphene.Rect bounds (); @@ -263,7 +263,7 @@ namespace Graphene { public unowned Graphene.Quad? init_from_points ([CCode (array_length = false)] Graphene.Point points[4]); public unowned Graphene.Quad? init_from_rect (Graphene.Rect r); } - [CCode (cheader_filename = "graphene-gobject.h", cname = "graphene_quaternion_t", type_id = "graphene_quaternion_get_type ()")] + [CCode (cheader_filename = "graphene-gobject.h", cname = "graphene_quaternion_t", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "graphene_quaternion_get_type ()")] [Version (since = "1.0")] public struct Quaternion { public float dot (Graphene.Quaternion b); @@ -289,7 +289,7 @@ namespace Graphene { public void to_radians (out float rad_x, out float rad_y, out float rad_z); public Graphene.Vec4 to_vec4 (); } - [CCode (cheader_filename = "graphene-gobject.h", cname = "graphene_ray_t", type_id = "graphene_ray_get_type ()")] + [CCode (cheader_filename = "graphene-gobject.h", cname = "graphene_ray_t", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "graphene_ray_get_type ()")] [Version (since = "1.4")] public struct Ray { public bool equal (Graphene.Ray b); @@ -303,7 +303,7 @@ namespace Graphene { public unowned Graphene.Ray? init_from_ray (Graphene.Ray src); public unowned Graphene.Ray? init_from_vec3 (Graphene.Vec3? origin, Graphene.Vec3? direction); } - [CCode (cheader_filename = "graphene-gobject.h", cname = "graphene_rect_t", type_id = "graphene_rect_get_type ()")] + [CCode (cheader_filename = "graphene-gobject.h", cname = "graphene_rect_t", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "graphene_rect_get_type ()")] [Version (since = "1.0")] public struct Rect { public Graphene.Point origin; @@ -354,7 +354,7 @@ namespace Graphene { [CCode (cheader_filename = "graphene-gobject.h", cname = "graphene_simd4x4f_t", has_type_id = false)] public struct Simd4X4F { } - [CCode (cheader_filename = "graphene-gobject.h", cname = "graphene_size_t", type_id = "graphene_size_get_type ()")] + [CCode (cheader_filename = "graphene-gobject.h", cname = "graphene_size_t", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "graphene_size_get_type ()")] [Version (since = "1.0")] public struct Size { public float width; @@ -366,7 +366,7 @@ namespace Graphene { public Graphene.Size scale (float factor); public static unowned Graphene.Size? zero (); } - [CCode (cheader_filename = "graphene-gobject.h", cname = "graphene_sphere_t", type_id = "graphene_sphere_get_type ()")] + [CCode (cheader_filename = "graphene-gobject.h", cname = "graphene_sphere_t", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "graphene_sphere_get_type ()")] [Version (since = "1.2")] public struct Sphere { public bool contains_point (Graphene.Point3D point); @@ -381,7 +381,7 @@ namespace Graphene { public bool is_empty (); public Graphene.Sphere translate (Graphene.Point3D point); } - [CCode (cheader_filename = "graphene-gobject.h", cname = "graphene_triangle_t", type_id = "graphene_triangle_get_type ()")] + [CCode (cheader_filename = "graphene-gobject.h", cname = "graphene_triangle_t", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "graphene_triangle_get_type ()")] [Version (since = "1.2")] public struct Triangle { public bool contains_point (Graphene.Point3D p); @@ -397,7 +397,7 @@ namespace Graphene { public unowned Graphene.Triangle? init_from_point3d (Graphene.Point3D? a, Graphene.Point3D? b, Graphene.Point3D? c); public unowned Graphene.Triangle? init_from_vec3 (Graphene.Vec3? a, Graphene.Vec3? b, Graphene.Vec3? c); } - [CCode (cheader_filename = "graphene-gobject.h", cname = "graphene_vec2_t", type_id = "graphene_vec2_get_type ()")] + [CCode (cheader_filename = "graphene-gobject.h", cname = "graphene_vec2_t", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "graphene_vec2_get_type ()")] public struct Vec2 { [Version (since = "1.0")] public Graphene.Vec2 add (Graphene.Vec2 b); @@ -446,7 +446,7 @@ namespace Graphene { [Version (since = "1.0")] public static unowned Graphene.Vec2? zero (); } - [CCode (cheader_filename = "graphene-gobject.h", cname = "graphene_vec3_t", type_id = "graphene_vec3_get_type ()")] + [CCode (cheader_filename = "graphene-gobject.h", cname = "graphene_vec3_t", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "graphene_vec3_get_type ()")] public struct Vec3 { [Version (since = "1.0")] public Graphene.Vec3 add (Graphene.Vec3 b); @@ -511,7 +511,7 @@ namespace Graphene { [Version (since = "1.0")] public static unowned Graphene.Vec3? zero (); } - [CCode (cheader_filename = "graphene-gobject.h", cname = "graphene_vec4_t", type_id = "graphene_vec4_get_type ()")] + [CCode (cheader_filename = "graphene-gobject.h", cname = "graphene_vec4_t", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "graphene_vec4_get_type ()")] public struct Vec4 { [Version (since = "1.0")] public Graphene.Vec4 add (Graphene.Vec4 b); diff --git a/vapi/gtk+-3.0.vapi b/vapi/gtk+-3.0.vapi index 43c3e4738..15afa94c0 100644 --- a/vapi/gtk+-3.0.vapi +++ b/vapi/gtk+-3.0.vapi @@ -10879,7 +10879,7 @@ namespace Gtk { public weak string string_data; public GLib.Type arg_type; } - [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_border_get_type ()")] + [CCode (cheader_filename = "gtk/gtk.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gtk_border_get_type ()")] public struct Border { public int16 left; public int16 right; @@ -10948,7 +10948,7 @@ namespace Gtk { public int minimum_size; public int natural_size; } - [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_requisition_get_type ()")] + [CCode (cheader_filename = "gtk/gtk.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gtk_requisition_get_type ()")] public struct Requisition { public int width; public int height; @@ -10971,7 +10971,7 @@ namespace Gtk { public Gtk.StockItem? copy (); public void free (); } - [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_target_entry_get_type ()")] + [CCode (cheader_filename = "gtk/gtk.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gtk_target_entry_get_type ()")] public struct TargetEntry { public weak string target; public uint flags; @@ -10992,7 +10992,7 @@ namespace Gtk { [CCode (array_length = false)] public Gdk.RGBA rgba[2]; } - [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_text_iter_get_type ()")] + [CCode (cheader_filename = "gtk/gtk.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gtk_text_iter_get_type ()")] public struct TextIter { [Version (since = "3.2")] public void assign (Gtk.TextIter other); @@ -11114,7 +11114,7 @@ namespace Gtk { public weak Gtk.ActionCallback callback; public bool is_active; } - [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_tree_iter_get_type ()")] + [CCode (cheader_filename = "gtk/gtk.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gtk_tree_iter_get_type ()")] public struct TreeIter { public int stamp; public void* user_data; diff --git a/vapi/gtk4.vapi b/vapi/gtk4.vapi index b22b49732..039a901a8 100644 --- a/vapi/gtk4.vapi +++ b/vapi/gtk4.vapi @@ -5418,7 +5418,7 @@ namespace Gdk { public int x; public int y; } - [CCode (cheader_filename = "gdk/gdk.h", type_id = "gdk_rgba_get_type ()")] + [CCode (cheader_filename = "gdk/gdk.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gdk_rgba_get_type ()")] public struct RGBA { public double red; public double green; @@ -5433,7 +5433,7 @@ namespace Gdk { public bool parse (string spec); public string to_string (); } - [CCode (cheader_filename = "gdk/gdk.h", type_id = "gdk_rectangle_get_type ()")] + [CCode (cheader_filename = "gdk/gdk.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gdk_rectangle_get_type ()")] public struct Rectangle : Cairo.RectangleInt { public bool contains_point (int x, int y); public bool equal (Gdk.Rectangle rect2); @@ -12732,7 +12732,7 @@ namespace Gtk { [CCode (cname = "d.string_data")] public weak string string_data; } - [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_border_get_type ()")] + [CCode (cheader_filename = "gtk/gtk.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gtk_border_get_type ()")] public struct Border { public int16 left; public int16 right; @@ -12782,7 +12782,7 @@ namespace Gtk { public int minimum_size; public int natural_size; } - [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_requisition_get_type ()")] + [CCode (cheader_filename = "gtk/gtk.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gtk_requisition_get_type ()")] public struct Requisition { public int width; public int height; @@ -12794,7 +12794,7 @@ namespace Gtk { public weak string origin; public GLib.Value value; } - [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_text_iter_get_type ()")] + [CCode (cheader_filename = "gtk/gtk.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gtk_text_iter_get_type ()")] public struct TextIter { public void assign (Gtk.TextIter other); public bool backward_char (); @@ -12887,7 +12887,7 @@ namespace Gtk { public bool starts_word (); public bool toggles_tag (Gtk.TextTag? tag); } - [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_tree_iter_get_type ()")] + [CCode (cheader_filename = "gtk/gtk.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gtk_tree_iter_get_type ()")] public struct TreeIter { public int stamp; public void* user_data; diff --git a/vapi/pango.vapi b/vapi/pango.vapi index f3feb6d4f..a7b37fb1e 100644 --- a/vapi/pango.vapi +++ b/vapi/pango.vapi @@ -621,7 +621,7 @@ namespace Pango { public struct AttrFontFeatures { public weak string features; } - [CCode (cheader_filename = "pango/pango.h", type_id = "pango_color_get_type ()")] + [CCode (cheader_filename = "pango/pango.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "pango_color_get_type ()")] public struct Color { public uint16 red; public uint16 green; @@ -663,7 +663,7 @@ namespace Pango { public Pango.GlyphGeometry geometry; public Pango.GlyphVisAttr attr; } - [CCode (cheader_filename = "pango/pango.h", type_id = "pango_glyph_item_iter_get_type ()")] + [CCode (cheader_filename = "pango/pango.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "pango_glyph_item_iter_get_type ()")] [Version (since = "1.22")] public struct GlyphItemIter { public weak Pango.GlyphItem glyph_item; @@ -705,7 +705,7 @@ namespace Pango { public uint is_expandable_space; public uint is_word_boundary; } - [CCode (cheader_filename = "pango/pango.h", type_id = "pango_matrix_get_type ()")] + [CCode (cheader_filename = "pango/pango.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "pango_matrix_get_type ()")] [Version (since = "1.6")] public struct Matrix { public double xx; diff --git a/vapi/poppler-glib.vapi b/vapi/poppler-glib.vapi index e7406cdf7..4199ab0a0 100644 --- a/vapi/poppler-glib.vapi +++ b/vapi/poppler-glib.vapi @@ -887,7 +887,7 @@ namespace Poppler { public string title; public string uri; } - [CCode (cheader_filename = "poppler.h", type_id = "poppler_rectangle_get_type ()")] + [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_rectangle_get_type ()")] public struct Rectangle { public double x1; public double y1; |