[vala/0.48] goocanvas-2.0: Fix some field types



commit 60e16b7abaa949ee80e2d0c2be1a22ff0fa132c6
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Tue Jan 26 14:19:56 2021 +0100

    goocanvas-2.0: Fix some field types

 vapi/goocanvas-2.0.vapi              | 6 ++++--
 vapi/metadata/GooCanvas-2.0.metadata | 4 ++++
 2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/vapi/goocanvas-2.0.vapi b/vapi/goocanvas-2.0.vapi
index cd7143c65..8db1b997e 100644
--- a/vapi/goocanvas-2.0.vapi
+++ b/vapi/goocanvas-2.0.vapi
@@ -1057,7 +1057,8 @@ namespace Goo {
        }
        [CCode (cheader_filename = "goocanvas.h", has_type_id = false)]
        public struct CanvasPolylineData {
-               public double coords;
+               [CCode (array_length = false)]
+               public double[] coords;
                public Goo.CanvasPolylineArrowData? arrow_data;
                public uint num_points;
                public uint close_path;
@@ -1093,7 +1094,8 @@ namespace Goo {
        public struct CanvasTableDimension {
                public int size;
                public double default_spacing;
-               public double spacings;
+               [CCode (array_length = false)]
+               public double[] spacings;
                public uint homogeneous;
        }
        [CCode (cheader_filename = "goocanvas.h", has_type_id = false)]
diff --git a/vapi/metadata/GooCanvas-2.0.metadata b/vapi/metadata/GooCanvas-2.0.metadata
index 56fc0852f..f0769fdba 100644
--- a/vapi/metadata/GooCanvas-2.0.metadata
+++ b/vapi/metadata/GooCanvas-2.0.metadata
@@ -50,6 +50,8 @@ CanvasPolyline
        .polyline_data nullable unowned=false
 CanvasPolylineData
        .arrow_data nullable unowned=false
+CanvasPolylineData
+       .coords array unowned=false
 CanvasItemSimpleData
        .clip_path_commands type="GLib.Array<Goo.CanvasPathCommand?>"
 CanvasPath
@@ -62,5 +64,7 @@ CanvasTable
        .table_data nullable unowned=false
 CanvasTableData
        .layout_data nullable unowned=false
+CanvasTableDimension
+       .spacings array unowned=false
 CanvasText
        .text_data nullable unowned=false


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]