[vala/0.52: 4/4] vapi: Update GIR-based bindings
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.52: 4/4] vapi: Update GIR-based bindings
- Date: Wed, 19 May 2021 06:49:25 +0000 (UTC)
commit 96134cc2b789753e7feb4045dc160242b34c0b17
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Tue May 4 14:46:10 2021 +0200
vapi: Update GIR-based bindings
vapi/atk.vapi | 1 +
vapi/gstreamer-1.0.vapi | 8 ++++++++
vapi/gstreamer-rtp-1.0.vapi | 2 +-
vapi/gtk+-3.0.vapi | 6 +++---
vapi/gtk4.vapi | 26 +++++++++++++++++---------
5 files changed, 30 insertions(+), 13 deletions(-)
---
diff --git a/vapi/atk.vapi b/vapi/atk.vapi
index 81850f8ea..857eb797c 100644
--- a/vapi/atk.vapi
+++ b/vapi/atk.vapi
@@ -863,6 +863,7 @@ namespace Atk {
HAS_POPUP,
HAS_TOOLTIP,
READ_ONLY,
+ COLLAPSED,
LAST_DEFINED;
[CCode (cheader_filename = "atk/atk.h")]
public static Atk.StateType for_name (string name);
diff --git a/vapi/gstreamer-1.0.vapi b/vapi/gstreamer-1.0.vapi
index a1b09bec1..296c2db60 100644
--- a/vapi/gstreamer-1.0.vapi
+++ b/vapi/gstreamer-1.0.vapi
@@ -572,6 +572,9 @@ namespace Gst {
public Gst.MemoryFlags flags;
public size_t padding;
public size_t prefix;
+ [CCode (has_construct_function = false)]
+ [Version (since = "1.20")]
+ public AllocationParams ();
public Gst.AllocationParams? copy ();
[DestroysInstance]
public void free ();
@@ -961,6 +964,9 @@ namespace Gst {
public void remove (string feature);
public void remove_id (GLib.Quark feature);
public bool set_parent_refcount (int refcount);
+ [CCode (has_construct_function = false)]
+ [Version (since = "1.20")]
+ public CapsFeatures.single (string feature);
public string to_string ();
[CCode (has_construct_function = false)]
public CapsFeatures.valist (string feature1, va_list varargs);
@@ -3067,6 +3073,8 @@ namespace Gst {
public unowned uint8[]? peek (int64 offset);
public static bool register (Gst.Plugin? plugin, string name, uint rank, [CCode
(delegate_target_pos = 6.1, destroy_notify_pos = 6.2)] owned Gst.TypeFindFunction func, string? extensions,
Gst.Caps? possible_caps);
public void suggest (uint probability, Gst.Caps caps);
+ [Version (since = "1.20")]
+ public void suggest_empty_simple (uint probability, string media_type);
public void suggest_simple (uint probability, string media_type, string? fieldname, ...);
}
[CCode (cheader_filename = "gst/gst.h", has_type_id = false)]
diff --git a/vapi/gstreamer-rtp-1.0.vapi b/vapi/gstreamer-rtp-1.0.vapi
index d595720ce..7582a5077 100644
--- a/vapi/gstreamer-rtp-1.0.vapi
+++ b/vapi/gstreamer-rtp-1.0.vapi
@@ -397,7 +397,7 @@ namespace Gst {
public static Gst.Buffer buffer_new_take_data ([CCode (array_length_cname = "len",
array_length_pos = 1.1, array_length_type = "gsize")] owned uint8[] data);
[CCode (cheader_filename = "gst/rtp/rtp.h")]
[Version (since = "1.20")]
- public static GLib.List<Gst.RTP.HeaderExtension> get_header_extension_list ();
+ public static GLib.List<Gst.ElementFactory> get_header_extension_list ();
[CCode (cheader_filename = "gst/rtp/rtp.h")]
public static bool hdrext_get_ntp_56 ([CCode (array_length_cname = "size", array_length_pos =
1.5, array_length_type = "guint")] uint8[] data, out uint64 ntptime);
[CCode (cheader_filename = "gst/rtp/rtp.h")]
diff --git a/vapi/gtk+-3.0.vapi b/vapi/gtk+-3.0.vapi
index d963e7f20..145a7267c 100644
--- a/vapi/gtk+-3.0.vapi
+++ b/vapi/gtk+-3.0.vapi
@@ -10637,11 +10637,11 @@ namespace Gtk {
public void set_show_preview_entry (bool show_preview_entry);
public string font { owned get; set; }
public Pango.FontDescription font_desc { owned get; set; }
- [Version (since = "3.22.30")]
+ [Version (since = "3.24.1")]
public string font_features { owned get; }
- [Version (since = "3.22.30")]
+ [Version (since = "3.24.1")]
public string language { owned get; set; }
- [Version (since = "3.22.30")]
+ [Version (since = "3.24.1")]
public Gtk.FontChooserLevel level { get; set; }
public string preview_text { owned get; set; }
public bool show_preview_entry { get; set; }
diff --git a/vapi/gtk4.vapi b/vapi/gtk4.vapi
index 99574a9c2..ebf6d988a 100644
--- a/vapi/gtk4.vapi
+++ b/vapi/gtk4.vapi
@@ -4567,6 +4567,8 @@ namespace Gdk {
[CCode (has_construct_function = false)]
protected Device ();
public unowned string? get_node_path ();
+ [Version (since = "4.4")]
+ public void* get_xkb_keymap ();
}
[CCode (cheader_filename = "gdk/wayland/gdkwayland.h", type_id =
"gdk_wayland_display_get_type ()")]
[GIR (name = "WaylandDisplay")]
@@ -4834,10 +4836,10 @@ namespace Gdk {
public bool contain_mime_type (string mime_type);
[CCode (has_construct_function = false)]
public ContentFormats.for_gtype (GLib.Type type);
- [CCode (array_length_pos = 0.1, array_length_type = "gsize")]
+ [CCode (array_length = true, array_length_pos = 0.1, array_length_type = "gsize",
array_null_terminated = true)]
public unowned GLib.Type[]? get_gtypes ();
- [CCode (array_length = false, array_null_terminated = true)]
- public unowned string[]? get_mime_types (out size_t n_mime_types);
+ [CCode (array_length = true, array_length_pos = 0.1, array_length_type = "gsize",
array_null_terminated = true)]
+ public unowned string[]? get_mime_types ();
public bool match (Gdk.ContentFormats second);
public GLib.Type match_gtype (Gdk.ContentFormats second);
public unowned string? match_mime_type (Gdk.ContentFormats second);
@@ -4964,6 +4966,8 @@ namespace Gdk {
public unowned Gdk.Seat get_seat ();
public Gdk.InputSource get_source ();
public unowned Gdk.Surface? get_surface_at_position (out double win_x, out double win_y);
+ [Version (since = "4.2")]
+ public uint32 get_timestamp ();
public unowned string? get_vendor_id ();
public bool caps_lock_state { get; }
public Pango.Direction direction { get; }
@@ -6783,9 +6787,9 @@ namespace Gtk {
public class BoolFilter : Gtk.Filter {
[CCode (has_construct_function = false)]
public BoolFilter (owned Gtk.Expression? expression);
- public unowned Gtk.Expression get_expression ();
+ public unowned Gtk.Expression? get_expression ();
public bool get_invert ();
- public void set_expression (Gtk.Expression expression);
+ public void set_expression (Gtk.Expression? expression);
public void set_invert (bool invert);
public Gtk.Expression expression { get; set; }
public bool invert { get; set; }
@@ -8714,12 +8718,14 @@ namespace Gtk {
public virtual void get_preedit_string (out string str, out Pango.AttrList attrs, out int
cursor_pos);
[Version (deprecated = true, deprecated_since = "4.2")]
public virtual bool get_surrounding (out string text, out int cursor_index);
+ [Version (since = "4.2")]
public virtual bool get_surrounding_with_selection (out string text, out int cursor_index,
out int anchor_index);
public virtual void reset ();
public virtual void set_client_widget (Gtk.Widget? widget);
public virtual void set_cursor_location (Gdk.Rectangle area);
[Version (deprecated = true, deprecated_since = "4.2")]
public virtual void set_surrounding (string text, int len, int cursor_index);
+ [Version (since = "4.2")]
public virtual void set_surrounding_with_selection (string text, int len, int cursor_index,
int anchor_index);
public virtual void set_use_preedit (bool use_preedit);
[NoAccessorMethod]
@@ -8778,6 +8784,7 @@ namespace Gtk {
[CCode (array_length = false, array_null_terminated = true)]
public string[]? get_search_path ();
public string get_theme_name ();
+ public bool has_gicon (GLib.Icon gicon);
public bool has_icon (string icon_name);
public Gtk.IconPaintable lookup_by_gicon (GLib.Icon icon, int size, int scale,
Gtk.TextDirection direction, Gtk.IconLookupFlags flags);
public Gtk.IconPaintable lookup_icon (string icon_name, [CCode (array_length = false,
array_null_terminated = true)] string[]? fallbacks, int size, int scale, Gtk.TextDirection direction,
Gtk.IconLookupFlags flags);
@@ -10923,11 +10930,11 @@ namespace Gtk {
public class StringFilter : Gtk.Filter {
[CCode (has_construct_function = false)]
public StringFilter (owned Gtk.Expression? expression);
- public unowned Gtk.Expression get_expression ();
+ public unowned Gtk.Expression? get_expression ();
public bool get_ignore_case ();
public Gtk.StringFilterMatchMode get_match_mode ();
public unowned string? get_search ();
- public void set_expression (Gtk.Expression expression);
+ public void set_expression (Gtk.Expression? expression);
public void set_ignore_case (bool ignore_case);
public void set_match_mode (Gtk.StringFilterMatchMode mode);
public void set_search (string? search);
@@ -12145,7 +12152,7 @@ namespace Gtk {
public GLib.ListModel observe_controllers ();
public unowned Gtk.Widget? pick (double x, double y, Gtk.PickFlags flags);
[CCode (cname = "gtk_widget_class_query_action")]
- public class bool query_action (uint index_, out GLib.Type owner, out string action_name, out
GLib.VariantType parameter_type, out string property_name);
+ public class bool query_action (uint index_, out GLib.Type owner, out string action_name, out
GLib.VariantType? parameter_type, out string? property_name);
public void queue_allocate ();
public void queue_draw ();
public void queue_resize ();
@@ -13294,7 +13301,8 @@ namespace Gtk {
SNAPSHOT,
CONSTRAINTS,
BUILDER_OBJECTS,
- A11Y
+ A11Y,
+ ICONFALLBACK
}
[CCode (cheader_filename = "gtk/gtk.h", cprefix = "GTK_DELETE_", type_id = "gtk_delete_type_get_type
()")]
public enum DeleteType {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]