From: Rico Tzschichholz Date: Mon, 29 Nov 2021 09:36:54 +0000 (+0100) Subject: vapi: Update GIR-based bindings X-Git-Tag: 0.55.1~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=067e82d2b6de3576cfb993674009fabb41d80e98;p=thirdparty%2Fvala.git vapi: Update GIR-based bindings --- diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi index 0f8098bf0..b3dc8277d 100644 --- a/vapi/gio-2.0.vapi +++ b/vapi/gio-2.0.vapi @@ -2738,7 +2738,7 @@ namespace GLib { public uint get_timeout (); [Version (since = "2.28")] public bool get_tls (); - [Version (since = "2.28")] + [Version (deprecated = true, deprecated_since = "2.72", since = "2.28")] public GLib.TlsCertificateFlags get_tls_validation_flags (); [Version (since = "2.26")] public void set_enable_proxy (bool enable); @@ -2752,7 +2752,7 @@ namespace GLib { public void set_timeout (uint timeout); [Version (since = "2.28")] public void set_tls (bool tls); - [Version (since = "2.28")] + [Version (deprecated = true, deprecated_since = "2.72", since = "2.28")] public void set_tls_validation_flags (GLib.TlsCertificateFlags flags); public bool enable_proxy { get; set construct; } public GLib.SocketFamily family { get; set construct; } @@ -2762,6 +2762,7 @@ namespace GLib { public GLib.ProxyResolver proxy_resolver { get; set construct; } public uint timeout { get; set construct; } public bool tls { get; set construct; } + [Version (deprecated = true, deprecated_since = "2.72")] public GLib.TlsCertificateFlags tls_validation_flags { get; set construct; } [NoAccessorMethod] public GLib.SocketType type { get; set construct; } @@ -4066,11 +4067,13 @@ namespace GLib { public unowned GLib.SocketConnectable? get_server_identity (); [Version (deprecated = true, deprecated_since = "2.56", since = "2.28")] public bool get_use_ssl3 (); + [Version (deprecated = true, deprecated_since = "2.72", since = "2.28")] public GLib.TlsCertificateFlags get_validation_flags (); public static GLib.TlsClientConnection? @new (GLib.IOStream base_io_stream, GLib.SocketConnectable? server_identity) throws GLib.Error; public void set_server_identity (GLib.SocketConnectable identity); [Version (deprecated = true, deprecated_since = "2.56", since = "2.28")] public void set_use_ssl3 (bool use_ssl3); + [Version (deprecated = true, deprecated_since = "2.72", since = "2.28")] public void set_validation_flags (GLib.TlsCertificateFlags flags); [ConcreteAccessor] public abstract GLib.List accepted_cas { owned get; } @@ -4080,6 +4083,7 @@ namespace GLib { [Version (deprecated = true, deprecated_since = "2.56", since = "2.28")] public abstract bool use_ssl3 { get; set construct; } [ConcreteAccessor] + [Version (deprecated = true, deprecated_since = "2.72", since = "2.28")] public abstract GLib.TlsCertificateFlags validation_flags { get; set construct; } } [CCode (cheader_filename = "gio/gio.h", type_cname = "GTlsFileDatabaseInterface", type_id = "g_tls_file_database_get_type ()")] @@ -4744,7 +4748,8 @@ namespace GLib { STDERR_PIPE, STDERR_SILENCE, STDERR_MERGE, - INHERIT_FDS + INHERIT_FDS, + SEARCH_PATH_FROM_ENVP } [CCode (cheader_filename = "gio/gio.h", cprefix = "G_TEST_DBUS_", type_id = "g_test_dbus_flags_get_type ()")] [Flags] diff --git a/vapi/gtk4.vapi b/vapi/gtk4.vapi index 3985fb63e..41af93532 100644 --- a/vapi/gtk4.vapi +++ b/vapi/gtk4.vapi @@ -5559,6 +5559,7 @@ namespace Gdk { public void set_transient_for (Gdk.Surface parent); public bool show_window_menu (Gdk.Event event); public bool supports_edge_constraints (); + [Version (since = "4.4")] public bool titlebar_gesture (Gdk.TitlebarGesture gesture); [NoAccessorMethod] public abstract bool decorated { get; set; } @@ -5892,6 +5893,7 @@ namespace Gdk { SOUTH_EAST } [CCode (cheader_filename = "gdk/gdk.h", cprefix = "GDK_TITLEBAR_GESTURE_", type_id = "gdk_titlebar_gesture_get_type ()")] + [Version (since = "4.4")] public enum TitlebarGesture { DOUBLE_CLICK, RIGHT_CLICK, @@ -6323,6 +6325,7 @@ namespace Gsk { public unowned Pango.GlyphInfo[] get_glyphs (); public uint get_num_glyphs (); public unowned Graphene.Point? get_offset (); + [Version (since = "4.2")] public bool has_color_glyphs (); } [CCode (cheader_filename = "gsk/gsk.h", type_id = "gsk_texture_node_get_type ()")] @@ -13735,6 +13738,7 @@ namespace Gtk { SMALLER, EQUAL, LARGER; + [Version (since = "4.2")] public static Gtk.Ordering from_cmpfunc (int cmpfunc_result); } [CCode (cheader_filename = "gtk/gtk.h", cprefix = "GTK_ORIENTATION_", type_id = "gtk_orientation_get_type ()")] @@ -14527,7 +14531,7 @@ namespace Gtk { [Version (replacement = "Native.get_for_surface")] public static unowned Gtk.Native native_get_for_surface (Gdk.Surface surface); [CCode (cheader_filename = "gtk/gtk.h")] - [Version (replacement = "Ordering.from_cmpfunc")] + [Version (replacement = "Ordering.from_cmpfunc", since = "4.2")] public static Gtk.Ordering ordering_from_cmpfunc (int cmpfunc_result); [CCode (cheader_filename = "gtk/gtk.h")] [Version (replacement = "PaperSize.get_default")] diff --git a/vapi/metadata/Gtk-4.0.metadata b/vapi/metadata/Gtk-4.0.metadata index 9443779d2..8ce47784e 100644 --- a/vapi/metadata/Gtk-4.0.metadata +++ b/vapi/metadata/Gtk-4.0.metadata @@ -351,8 +351,6 @@ Notebook .create_window skip=false PrintOperation .create_custom_widget skip=false -Snapshot - .push_shadow.shadow array array_length_idx=1 // Not completely sure Button diff --git a/vapi/pango.vapi b/vapi/pango.vapi index 0470630e8..f7d9f3f8a 100644 --- a/vapi/pango.vapi +++ b/vapi/pango.vapi @@ -90,6 +90,8 @@ namespace Pango { public bool equal (Pango.AttrList other_list); [Version (since = "1.2")] public Pango.AttrList? filter (Pango.AttrFilterFunc func); + [Version (since = "1.50")] + public static Pango.AttrList? from_string (string text); [Version (since = "1.44")] public GLib.SList get_attributes (); public Pango.AttrIterator get_iterator (); @@ -98,6 +100,8 @@ namespace Pango { [Version (since = "1.10")] public unowned Pango.AttrList @ref (); public void splice (Pango.AttrList other, int pos, int len); + [Version (since = "1.50")] + public string to_string (); public void unref (); [Version (since = "1.44")] public void update (int pos, int remove, int add); @@ -251,6 +255,8 @@ namespace Pango { public virtual Pango.FontMetrics get_metrics (Pango.Language? language); [Version (since = "1.44")] public bool has_char (unichar wc); + [Version (since = "1.50")] + public GLib.Bytes serialize (); } [CCode (cheader_filename = "pango/pango.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "pango_font_description_get_type ()")] [Compact] @@ -290,7 +296,7 @@ namespace Pango { public void set_style (Pango.Style style); public void set_variant (Pango.Variant variant); [Version (since = "1.42")] - public void set_variations (string variations); + public void set_variations (string? variations); [Version (since = "1.42")] public void set_variations_static (string variations); public void set_weight (Pango.Weight weight); @@ -461,6 +467,8 @@ namespace Pango { public Layout (Pango.Context context); public void context_changed (); public Pango.Layout copy (); + [Version (since = "1.50")] + public static Pango.Layout? deserialize (Pango.Context context, GLib.Bytes bytes, Pango.LayoutDeserializeFlags flags) throws GLib.Error; public Pango.Alignment get_alignment (); public unowned Pango.AttrList? get_attributes (); [Version (since = "1.4")] @@ -520,6 +528,8 @@ namespace Pango { [Version (since = "1.16")] public bool is_wrapped (); public void move_cursor_visually (bool strong, int old_index, int old_trailing, int direction, out int new_index, out int new_trailing); + [Version (since = "1.50")] + public GLib.Bytes serialize (Pango.LayoutSerializeFlags flags); public void set_alignment (Pango.Alignment alignment); public void set_attributes (Pango.AttrList? attrs); [Version (since = "1.4")] @@ -543,6 +553,8 @@ namespace Pango { public void set_text (string text, int length); public void set_width (int width); public void set_wrap (Pango.WrapMode wrap); + [Version (since = "1.50")] + public bool write_to_file (Pango.LayoutSerializeFlags flags, string filename) throws GLib.Error; public bool xy_to_index (int x, int y, out int index_, out int trailing); } [CCode (cheader_filename = "pango/pango.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "pango_layout_iter_get_type ()")] @@ -664,12 +676,16 @@ namespace Pango { public TabArray (int initial_size, bool positions_in_pixels); public Pango.TabArray copy (); public void free (); + [Version (since = "1.50")] + public static Pango.TabArray? from_string (string text); public bool get_positions_in_pixels (); public int get_size (); public void get_tab (int tab_index, out Pango.TabAlign alignment, out int location); public void get_tabs (out Pango.TabAlign alignments, [CCode (array_length = false)] out int[] locations); public void resize (int new_size); public void set_tab (int tab_index, Pango.TabAlign alignment, int location); + [Version (since = "1.50")] + public string to_string (); [CCode (has_construct_function = false)] public TabArray.with_positions (int size, bool positions_in_pixels, Pango.TabAlign first_alignment, ...); } @@ -945,6 +961,19 @@ namespace Pango { STRONG, LINE } + [CCode (cheader_filename = "pango/pango.h", cprefix = "PANGO_LAYOUT_DESERIALIZE_", type_id = "pango_layout_deserialize_flags_get_type ()")] + [Flags] + public enum LayoutDeserializeFlags { + DEFAULT, + CONTEXT + } + [CCode (cheader_filename = "pango/pango.h", cprefix = "PANGO_LAYOUT_SERIALIZE_", type_id = "pango_layout_serialize_flags_get_type ()")] + [Flags] + public enum LayoutSerializeFlags { + DEFAULT, + CONTEXT, + OUTPUT + } [CCode (cheader_filename = "pango/pango.h", cprefix = "PANGO_OVERLINE_", type_id = "pango_overline_get_type ()")] [Version (since = "1.46")] public enum Overline { @@ -1173,6 +1202,14 @@ namespace Pango { CHAR, WORD_CHAR } + [CCode (cheader_filename = "pango/pango.h", cprefix = "PANGO_LAYOUT_DESERIALIZE_")] + public errordomain LayoutDeserializeError { + INVALID, + INVALID_SYNTAX, + INVALID_VALUE, + MISSING_VALUE; + public static GLib.Quark quark (); + } [CCode (cheader_filename = "pango/pango.h", has_target = false)] public delegate T AttrDataCopyFunc (T data); [CCode (cheader_filename = "pango/pango.h", instance_pos = 1.9)] @@ -1261,6 +1298,9 @@ namespace Pango { [Version (since = "1.50")] public static Pango.Attribute attr_line_height_new_absolute (int height); [CCode (cheader_filename = "pango/pango.h")] + [Version (replacement = "AttrList.from_string", since = "1.50")] + public static Pango.AttrList? attr_list_from_string (string text); + [CCode (cheader_filename = "pango/pango.h")] [Version (since = "1.46")] public static Pango.Attribute attr_overline_color_new (uint16 red, uint16 green, uint16 blue); [CCode (cheader_filename = "pango/pango.h")] @@ -1360,6 +1400,9 @@ namespace Pango { [Version (replacement = "Language.get_preferred", since = "1.48")] public static unowned Pango.Language? language_get_preferred (); [CCode (cheader_filename = "pango/pango.h")] + [Version (replacement = "LayoutDeserializeError.quark")] + public static GLib.Quark layout_deserialize_error_quark (); + [CCode (cheader_filename = "pango/pango.h")] [Version (since = "1.4")] public static uint8 log2vis_get_embedding_levels (string text, int length, ref Pango.Direction pbase_dir); [CCode (cheader_filename = "pango/pango.h")] @@ -1422,6 +1465,9 @@ namespace Pango { [Version (deprecated = true, deprecated_since = "1.38")] public static string[] split_file_list (string str); [CCode (cheader_filename = "pango/pango.h")] + [Version (replacement = "TabArray.from_string", since = "1.50")] + public static Pango.TabArray? tab_array_from_string (string text); + [CCode (cheader_filename = "pango/pango.h")] [Version (since = "1.44")] public static void tailor_break (string text, int length, Pango.Analysis analysis, int offset, [CCode (array_length_cname = "attrs_len", array_length_pos = 5.1)] Pango.LogAttr[] attrs); [CCode (cheader_filename = "pango/pango.h")]