[vala/staging] vapi: Update GIR-based bindings



commit 9dff977bed612cbb76807d80571a3029ae9aed13
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sun Nov 14 20:23:22 2021 +0100

    vapi: Update GIR-based bindings

 vapi/gio-2.0.vapi             |  5 +++--
 vapi/gstreamer-video-1.0.vapi | 22 +++++++++++++++++++---
 vapi/gtk4.vapi                | 13 ++++++++++++-
 vapi/pango.vapi               | 20 ++++++++++++++++----
 4 files changed, 50 insertions(+), 10 deletions(-)
---
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index 85ad15ea9..0f8098bf0 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -3819,7 +3819,7 @@ namespace GLib {
                public abstract GLib.FileIOStream replace_readwrite (string? etag, bool make_backup, 
GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
                [Version (since = "2.22")]
                public virtual async GLib.FileIOStream replace_readwrite_async (string? etag, bool 
make_backup, GLib.FileCreateFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? 
cancellable = null) throws GLib.Error;
-               public abstract GLib.File resolve_relative_path (string relative_path);
+               public abstract GLib.File? resolve_relative_path (string relative_path);
                public abstract bool set_attribute (string attribute, GLib.FileAttributeType type, void* 
value_p, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
                public bool set_attribute_byte_string (string attribute, string value, 
GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
                public bool set_attribute_int32 (string attribute, int32 value, GLib.FileQueryInfoFlags 
flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
@@ -4393,7 +4393,8 @@ namespace GLib {
                DO_NOT_CONNECT_SIGNALS,
                DO_NOT_AUTO_START,
                GET_INVALIDATED_PROPERTIES,
-               DO_NOT_AUTO_START_AT_CONSTRUCTION
+               DO_NOT_AUTO_START_AT_CONSTRUCTION,
+               NO_MATCH_RULE
        }
        [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_SEND_MESSAGE_FLAGS_", type_id = 
"g_dbus_send_message_flags_get_type ()")]
        [Flags]
diff --git a/vapi/gstreamer-video-1.0.vapi b/vapi/gstreamer-video-1.0.vapi
index efb567f36..912c650e0 100644
--- a/vapi/gstreamer-video-1.0.vapi
+++ b/vapi/gstreamer-video-1.0.vapi
@@ -624,7 +624,7 @@ namespace Gst {
                [GIR (name = "VideoOrientation")]
                public interface Orientation : GLib.Object {
                        [Version (since = "1.20")]
-                       public static bool from_tag (Gst.TagList taglist, Gst.Video.OrientationMethod method);
+                       public static bool from_tag (Gst.TagList taglist, out Gst.Video.OrientationMethod 
method);
                        public abstract bool get_hcenter (out int center);
                        public abstract bool get_hflip (out bool flip);
                        public abstract bool get_vcenter (out int center);
@@ -1310,7 +1310,23 @@ namespace Gst {
                        [Version (since = "1.20")]
                        BGRP,
                        [Version (since = "1.20")]
-                       AV12;
+                       AV12,
+                       [Version (since = "1.20")]
+                       ARGB64_LE,
+                       [Version (since = "1.20")]
+                       ARGB64_BE,
+                       [Version (since = "1.20")]
+                       RGBA64_LE,
+                       [Version (since = "1.20")]
+                       RGBA64_BE,
+                       [Version (since = "1.20")]
+                       BGRA64_LE,
+                       [Version (since = "1.20")]
+                       BGRA64_BE,
+                       [Version (since = "1.20")]
+                       ABGR64_LE,
+                       [Version (since = "1.20")]
+                       ABGR64_BE;
                        public static Gst.Video.Format from_fourcc (uint32 fourcc);
                        public static Gst.Video.Format from_masks (int depth, int bpp, int endianness, uint 
red_mask, uint green_mask, uint blue_mask, uint alpha_mask);
                        public static Gst.Video.Format from_string (string format);
@@ -2110,7 +2126,7 @@ namespace Gst {
                public static void navigation_query_set_commandsv (Gst.Query query, [CCode 
(array_length_cname = "n_cmds", array_length_pos = 1.5)] Gst.Video.NavigationCommand[] cmds);
                [CCode (cheader_filename = "gst/video/video.h")]
                [Version (replacement = "VideoOrientation.from_tag", since = "1.20")]
-               public static bool orientation_from_tag (Gst.TagList taglist, Gst.Video.OrientationMethod 
method);
+               public static bool orientation_from_tag (Gst.TagList taglist, out Gst.Video.OrientationMethod 
method);
                [CCode (cheader_filename = "gst/video/video.h")]
                public static GLib.Type overlay_composition_meta_api_get_type ();
                [CCode (cheader_filename = "gst/video/video.h")]
diff --git a/vapi/gtk4.vapi b/vapi/gtk4.vapi
index 875e1dee4..3985fb63e 100644
--- a/vapi/gtk4.vapi
+++ b/vapi/gtk4.vapi
@@ -5020,7 +5020,7 @@ namespace Gdk {
                public void beep ();
                public void close ();
                [Version (since = "4.6")]
-               public Gdk.GLContext? create_gl_context () throws GLib.Error;
+               public Gdk.GLContext create_gl_context () throws GLib.Error;
                public bool device_is_grabbed (Gdk.Device device);
                public void flush ();
                public Gdk.AppLaunchContext get_app_launch_context ();
@@ -5441,6 +5441,7 @@ namespace Gdk {
                [CCode (cname = "gdk_texture_new_from_file")]
                public static Gdk.Texture from_file (GLib.File file) throws GLib.Error;
                [CCode (cname = "gdk_texture_new_from_filename")]
+               [Version (since = "4.6")]
                public static Gdk.Texture from_filename (string path) throws GLib.Error;
                [CCode (cname = "gdk_texture_new_from_resource")]
                public static Gdk.Texture from_resource (string resource_path);
@@ -6515,12 +6516,16 @@ namespace Gsk {
        [Version (replacement = "Transform.parse")]
        public static bool transform_parse (string string, out Gsk.Transform out_transform);
        [CCode (cheader_filename = "gsk/gsk.h")]
+       [Version (since = "4.6")]
        public static Gsk.RenderNode? value_dup_render_node (GLib.Value value);
        [CCode (cheader_filename = "gsk/gsk.h")]
+       [Version (since = "4.6")]
        public static unowned Gsk.RenderNode? value_get_render_node (ref GLib.Value value);
        [CCode (cheader_filename = "gsk/gsk.h")]
+       [Version (since = "4.6")]
        public static void value_set_render_node (ref GLib.Value value, Gsk.RenderNode node);
        [CCode (cheader_filename = "gsk/gsk.h")]
+       [Version (since = "4.6")]
        public static void value_take_render_node (ref GLib.Value value, owned Gsk.RenderNode? node);
 }
 [CCode (cprefix = "Gtk", gir_namespace = "Gtk", gir_version = "4.0", lower_case_cprefix = "gtk_")]
@@ -7661,6 +7666,8 @@ namespace Gtk {
                public bool popup_fixed_width { get; set; }
                [NoAccessorMethod]
                public bool popup_shown { get; }
+               [Version (since = "4.6")]
+               public virtual signal void activate ();
                public virtual signal void changed ();
                public virtual signal string format_entry_text (string path);
                public signal void move_active (Gtk.ScrollType scroll_type);
@@ -7946,6 +7953,8 @@ namespace Gtk {
                public GLib.Object selected_item { get; }
                [Version (since = "4.6")]
                public bool show_arrow { get; set; }
+               [Version (since = "4.6")]
+               public signal void activate ();
        }
        [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_drop_target_get_type ()")]
        public class DropTarget : Gtk.EventController {
@@ -12927,6 +12936,7 @@ namespace Gtk {
                public signal void gtk_private_changed ();
        }
        [CCode (cheader_filename = "gtk/gtk.h", type_cname = "GtkSymbolicPaintableInterface", type_id = 
"gtk_symbolic_paintable_get_type ()")]
+       [Version (since = "4.6")]
        public interface SymbolicPaintable : Gdk.Paintable, GLib.Object {
                public abstract void snapshot_symbolic (Gdk.Snapshot snapshot, double width, double height, 
[CCode (array_length_cname = "n_colors", array_length_pos = 4.1, array_length_type = "gsize")] Gdk.RGBA[] 
colors);
        }
@@ -14056,6 +14066,7 @@ namespace Gtk {
                SHOW_CHANGE
        }
        [CCode (cheader_filename = "gtk/gtk.h", cprefix = "GTK_SYMBOLIC_COLOR_", type_id = 
"gtk_symbolic_color_get_type ()")]
+       [Version (since = "4.6")]
        public enum SymbolicColor {
                FOREGROUND,
                ERROR,
diff --git a/vapi/pango.vapi b/vapi/pango.vapi
index 800679405..0470630e8 100644
--- a/vapi/pango.vapi
+++ b/vapi/pango.vapi
@@ -160,6 +160,7 @@ namespace Pango {
                public unowned Pango.AttrShape? as_shape ();
                [Version (since = "1.50")]
                public unowned Pango.AttrSize? as_size ();
+               [Version (since = "1.50")]
                public unowned Pango.AttrString? as_string ();
                public Pango.Attribute copy ();
                [DestroysInstance]
@@ -244,8 +245,9 @@ namespace Pango {
                [Version (since = "1.10")]
                public virtual unowned Pango.FontMap? get_font_map ();
                public virtual void get_glyph_extents (Pango.Glyph glyph, out Pango.Rectangle ink_rect, out 
Pango.Rectangle logical_rect);
+               [CCode (array_length = false, array_null_terminated = true)]
                [Version (since = "1.50")]
-               public unowned Pango.Language? get_languages ();
+               public unowned Pango.Language[]? get_languages ();
                public virtual Pango.FontMetrics get_metrics (Pango.Language? language);
                [Version (since = "1.44")]
                public bool has_char (unichar wc);
@@ -373,7 +375,7 @@ namespace Pango {
        public class FontsetSimple : Pango.Fontset {
                [CCode (has_construct_function = false)]
                public FontsetSimple (Pango.Language language);
-               public void append (Pango.Font font);
+               public void append (owned Pango.Font font);
                public int size ();
        }
        [CCode (cheader_filename = "pango/pango.h", copy_function = "g_boxed_copy", free_function = 
"g_boxed_free", type_id = "pango_glyph_item_get_type ()")]
@@ -563,6 +565,7 @@ namespace Pango {
                public unowned Pango.LayoutLine get_line_readonly ();
                public void get_line_yrange (out int y0_, out int y1_);
                public unowned Pango.LayoutRun? get_run ();
+               [Version (since = "1.50")]
                public int get_run_baseline ();
                public void get_run_extents (out Pango.Rectangle ink_rect, out Pango.Rectangle logical_rect);
                [Version (since = "1.16")]
@@ -755,6 +758,7 @@ namespace Pango {
                public uint is_word_boundary;
                public uint break_inserts_hyphen;
                public uint break_removes_preceding;
+               public uint reserved;
        }
        [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")]
@@ -913,10 +917,12 @@ namespace Pango {
                VARIATIONS
        }
        [CCode (cheader_filename = "pango/pango.h", cprefix = "PANGO_FONT_SCALE_", type_id = 
"pango_font_scale_get_type ()")]
+       [Version (since = "1.50")]
        public enum FontScale {
                NONE,
                SUPERSCRIPT,
-               SUBSCRIPT
+               SUBSCRIPT,
+               SMALL_CAPS
        }
        [CCode (cheader_filename = "pango/pango.h", cprefix = "PANGO_GRAVITY_", type_id = 
"pango_gravity_get_type ()")]
        [Version (since = "1.16")]
@@ -1081,6 +1087,7 @@ namespace Pango {
        }
        [CCode (cheader_filename = "pango/pango.h", cprefix = "PANGO_SHAPE_", type_id = 
"pango_shape_flags_get_type ()")]
        [Flags]
+       [Version (since = "1.44")]
        public enum ShapeFlags {
                NONE,
                ROUND_POSITIONS
@@ -1138,7 +1145,12 @@ namespace Pango {
        [CCode (cheader_filename = "pango/pango.h", cprefix = "PANGO_VARIANT_", type_id = 
"pango_variant_get_type ()")]
        public enum Variant {
                NORMAL,
-               SMALL_CAPS
+               SMALL_CAPS,
+               ALL_SMALL_CAPS,
+               PETITE_CAPS,
+               ALL_PETITE_CAPS,
+               UNICASE,
+               TITLE_CAPS
        }
        [CCode (cheader_filename = "pango/pango.h", cprefix = "PANGO_WEIGHT_", type_id = 
"pango_weight_get_type ()")]
        public enum Weight {


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