From: Rico Tzschichholz Date: Tue, 26 Jan 2021 12:03:17 +0000 (+0100) Subject: pango: Fix a few binding errors X-Git-Tag: 0.51.1~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f55521ca60a44959dce19144b83377243f4b884f;p=thirdparty%2Fvala.git pango: Fix a few binding errors --- diff --git a/vapi/metadata/Pango-1.0.metadata b/vapi/metadata/Pango-1.0.metadata index e1ebdd2bf..03745c299 100644 --- a/vapi/metadata/Pango-1.0.metadata +++ b/vapi/metadata/Pango-1.0.metadata @@ -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 diff --git a/vapi/pango.vapi b/vapi/pango.vapi index b669bfa55..97b4f9151 100644 --- a/vapi/pango.vapi +++ b/vapi/pango.vapi @@ -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 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;