]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
pango: Fix a few binding errors
authorRico Tzschichholz <ricotz@ubuntu.com>
Tue, 26 Jan 2021 12:03:17 +0000 (13:03 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Tue, 26 Jan 2021 12:03:17 +0000 (13:03 +0100)
vapi/metadata/Pango-1.0.metadata
vapi/pango.vapi

index e1ebdd2bf385eb880e9314aa801bba96f31adb38..03745c29987f39488cc6e820c85f50677273a512 100644 (file)
@@ -22,9 +22,13 @@ AttrDataCopyFunc skip
 // Fields
 AttrColor
   .color unowned=false
+EngineInfo
+  .scripts array unowned=false array_length_field="n_scripts"
 GlyphString
   .glyphs unowned=false array_length_field="num_glyphs"
   .log_clusters array unowned=false array_length_field="num_glyphs"
+Renderer
+  .matrix skip
 
 // G-I doesn't support non-GObject, non-GBoxed return values
 AttrIterator
@@ -77,3 +81,5 @@ Coverage
   .unref destroys_instance=false
 Item
   .free destroys_instance
+log2vis_get_embedding_levels
+  .pbase_dir ref
index b669bfa5512371e9b45e4546805987ffbd21a848..97b4f91517c9a10f30e8da0cfaf34230f084e59a 100644 (file)
@@ -594,7 +594,6 @@ namespace Pango {
        [CCode (cheader_filename = "pango/pango.h", type_id = "pango_renderer_get_type ()")]
        [Version (since = "1.8")]
        public abstract class Renderer : GLib.Object {
-               public Pango.Matrix matrix;
                [CCode (has_construct_function = false)]
                protected Renderer ();
                public void activate ();
@@ -690,7 +689,8 @@ namespace Pango {
                public weak string id;
                public weak string engine_type;
                public weak string render_type;
-               public Pango.EngineScriptInfo scripts;
+               [CCode (array_length_cname = "n_scripts")]
+               public Pango.EngineScriptInfo[] scripts;
                public int n_scripts;
        }
        [CCode (cheader_filename = "pango/pango.h", has_type_id = false)]
@@ -1269,7 +1269,7 @@ namespace Pango {
        public static GLib.List<Pango.Item> itemize_with_base_dir (Pango.Context context, Pango.Direction base_dir, string text, int start_index, int length, Pango.AttrList attrs, Pango.AttrIterator? cached_iter);
        [CCode (cheader_filename = "pango/pango.h")]
        [Version (since = "1.4")]
-       public static uint8 log2vis_get_embedding_levels (string text, int length, Pango.Direction pbase_dir);
+       public static uint8 log2vis_get_embedding_levels (string text, int length, ref Pango.Direction pbase_dir);
        [CCode (cheader_filename = "pango/pango.h")]
        [Version (since = "1.31.0")]
        public static bool markup_parser_finish (GLib.MarkupParseContext context, out Pango.AttrList attr_list, out string text, out unichar accel_char) throws GLib.Error;