[vala/staging: 4/4] vapi: Update GIR-based bindings
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging: 4/4] vapi: Update GIR-based bindings
- Date: Thu, 23 May 2019 12:40:04 +0000 (UTC)
commit e9a7a08657dc4c622f7c09b124e04bc710e2f5e0
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Thu May 23 11:49:26 2019 +0200
vapi: Update GIR-based bindings
vapi/atspi-2.vapi | 2 +-
vapi/graphene-gobject-1.0.vapi | 34 ++++++++++++++++++++++++++-
vapi/gtk4.vapi | 14 ++++++-----
vapi/libsoup-2.4.vapi | 53 ++++++++++++++++++++++++++++++++++++++++++
4 files changed, 95 insertions(+), 8 deletions(-)
---
diff --git a/vapi/atspi-2.vapi b/vapi/atspi-2.vapi
index 2a7d31420..06a7f7794 100644
--- a/vapi/atspi-2.vapi
+++ b/vapi/atspi-2.vapi
@@ -366,7 +366,7 @@ namespace Atspi {
public string? get_text_attribute_value (int offset, string attribute_name) throws GLib.Error;
public GLib.HashTable<string,string> get_text_attributes (int offset, out int start_offset,
out int end_offset) throws GLib.Error;
public Atspi.TextRange get_text_before_offset (int offset, Atspi.TextBoundaryType type)
throws GLib.Error;
- public void notify_reading_position (int offset);
+ public void notify_reading_position (int startOffset, int endOffset);
public bool remove_selection (int selection_num) throws GLib.Error;
public bool scroll_substring_to (int start_offset, int end_offset, Atspi.ScrollType type)
throws GLib.Error;
public bool scroll_substring_to_point (int start_offset, int end_offset, Atspi.CoordType
coords, int x, int y) throws GLib.Error;
diff --git a/vapi/graphene-gobject-1.0.vapi b/vapi/graphene-gobject-1.0.vapi
index f3c1a9d38..ae7cce4ae 100644
--- a/vapi/graphene-gobject-1.0.vapi
+++ b/vapi/graphene-gobject-1.0.vapi
@@ -38,6 +38,12 @@ namespace Graphene {
[Version (since = "1.2")]
public struct Euler {
public bool equal (Graphene.Euler b);
+ [Version (since = "1.10")]
+ public float get_alpha ();
+ [Version (since = "1.10")]
+ public float get_beta ();
+ [Version (since = "1.10")]
+ public float get_gamma ();
public Graphene.EulerOrder get_order ();
public float get_x ();
public float get_y ();
@@ -50,6 +56,8 @@ namespace Graphene {
public unowned Graphene.Euler? init_with_order (float x, float y, float z,
Graphene.EulerOrder order);
public Graphene.Euler reorder (Graphene.EulerOrder order);
public Graphene.Matrix to_matrix ();
+ [Version (since = "1.10")]
+ public Graphene.Quaternion to_quaternion ();
public Graphene.Vec3 to_vec3 ();
}
[CCode (cheader_filename = "graphene-gobject.h", cname = "graphene_frustum_t", type_id =
"graphene_frustum_get_type ()")]
@@ -585,7 +593,31 @@ namespace Graphene {
ZXY,
XZY,
YXZ,
- ZYX
+ ZYX,
+ SXYZ,
+ SXYX,
+ SXZY,
+ SXZX,
+ SYZX,
+ SYZY,
+ SYXZ,
+ SYXY,
+ SZXY,
+ SZXZ,
+ SZYX,
+ SZYZ,
+ RZYX,
+ RXYX,
+ RYZX,
+ RXZX,
+ RXZY,
+ RYZY,
+ RZXY,
+ RYXY,
+ RYXZ,
+ RZXZ,
+ RXYZ,
+ RZYZ
}
[CCode (cheader_filename = "graphene-gobject.h", cname = "GRAPHENE_HAS_GCC")]
public const int HAS_GCC;
diff --git a/vapi/gtk4.vapi b/vapi/gtk4.vapi
index 014896fd4..3506fc964 100644
--- a/vapi/gtk4.vapi
+++ b/vapi/gtk4.vapi
@@ -6191,12 +6191,10 @@ namespace Gsk {
[CCode (cheader_filename = "gsk/gsk.h", cname = "GskRenderNode")]
public class TextNode : Gsk.RenderNode {
[CCode (has_construct_function = false)]
- public TextNode (Pango.Font font, Pango.GlyphString glyphs, Gdk.RGBA color, float x, float y);
+ public TextNode (Pango.Font font, Pango.GlyphString glyphs, Gdk.RGBA color, Graphene.Point
offset);
public uint get_num_glyphs ();
- public float get_x ();
- public float get_y ();
+ public unowned Graphene.Point? get_offset ();
public unowned Gdk.RGBA? peek_color ();
- public unowned Pango.Font peek_font ();
public unowned Pango.GlyphInfo? peek_glyphs ();
}
[CCode (cheader_filename = "gsk/gsk.h", cname = "GskRenderNode")]
@@ -9065,7 +9063,7 @@ namespace Gtk {
public MenuBar.from_model (GLib.MenuModel model);
}
[CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_menu_button_get_type ()")]
- public class MenuButton : Gtk.ToggleButton, Atk.Implementor, Gtk.Actionable, Gtk.Buildable {
+ public class MenuButton : Gtk.Widget, Atk.Implementor, Gtk.Buildable {
[CCode (has_construct_function = false, type = "GtkWidget*")]
public MenuButton ();
public unowned Gtk.Widget? get_align_widget ();
@@ -9075,6 +9073,7 @@ namespace Gtk {
public unowned GLib.MenuModel? get_menu_model ();
public unowned Gtk.Popover? get_popover ();
public unowned Gtk.Menu? get_popup ();
+ public Gtk.ReliefStyle get_relief ();
public bool get_use_popover ();
public void set_align_widget (Gtk.Widget? align_widget);
public void set_direction (Gtk.ArrowType direction);
@@ -9083,16 +9082,19 @@ namespace Gtk {
public void set_menu_model (GLib.MenuModel? menu_model);
public void set_popover (Gtk.Widget? popover);
public void set_popup (Gtk.Widget? menu);
+ public void set_relief (Gtk.ReliefStyle relief);
public void set_use_popover (bool use_popover);
public Gtk.Container align_widget { get; set; }
public Gtk.ArrowType direction { get; set; }
+ public string icon_name { get; set; }
+ public string label { get; set; }
public GLib.MenuModel menu_model { get; set; }
public Gtk.Popover popover { get; set; }
public Gtk.Menu popup { get; set; }
public bool use_popover { get; set; }
}
[CCode (cheader_filename = "gtk/gtk.h,gtk/gtk-a11y.h", type_id = "gtk_menu_button_accessible_get_type
()")]
- public class MenuButtonAccessible : Gtk.ToggleButtonAccessible, Atk.Action, Atk.Component, Atk.Image {
+ public class MenuButtonAccessible : Gtk.WidgetAccessible, Atk.Component {
[CCode (has_construct_function = false)]
protected MenuButtonAccessible ();
}
diff --git a/vapi/libsoup-2.4.vapi b/vapi/libsoup-2.4.vapi
index 04689efdd..8cb58a39f 100644
--- a/vapi/libsoup-2.4.vapi
+++ b/vapi/libsoup-2.4.vapi
@@ -399,6 +399,8 @@ namespace Soup {
public CookieJar ();
[Version (since = "2.26")]
public void add_cookie (owned Soup.Cookie cookie);
+ [Version (since = "2.68")]
+ public void add_cookie_full (owned Soup.Cookie cookie, Soup.URI? uri, Soup.URI? first_party);
[Version (since = "2.40")]
public void add_cookie_with_first_party (Soup.URI first_party, owned Soup.Cookie cookie);
[Version (since = "2.26")]
@@ -489,6 +491,53 @@ namespace Soup {
[Version (since = "2.24")]
public GLib.TimeVal to_timeval ();
}
+ [CCode (cheader_filename = "libsoup/soup.h", type_id = "soup_hsts_enforcer_get_type ()")]
+ public class HSTSEnforcer : GLib.Object, Soup.SessionFeature {
+ [CCode (has_construct_function = false)]
+ [Version (since = "2.68")]
+ public HSTSEnforcer ();
+ [Version (since = "2.68")]
+ public virtual bool has_valid_policy (string domain);
+ [Version (since = "2.68")]
+ public virtual bool is_persistent ();
+ [Version (since = "2.68")]
+ public void set_policy (Soup.HSTSPolicy policy);
+ [Version (since = "2.68")]
+ public void set_session_policy (string domain, bool include_subdomains);
+ public virtual signal void changed (Soup.HSTSPolicy old_policy, Soup.HSTSPolicy new_policy);
+ }
+ [CCode (cheader_filename = "libsoup/soup.h", type_id = "soup_hsts_enforcer_db_get_type ()")]
+ public class HSTSEnforcerDB : Soup.HSTSEnforcer, Soup.SessionFeature {
+ [CCode (has_construct_function = false, type = "SoupHSTSEnforcer*")]
+ [Version (since = "2.68")]
+ public HSTSEnforcerDB (string filename);
+ [NoAccessorMethod]
+ public string filename { owned get; construct; }
+ }
+ [CCode (cheader_filename = "libsoup/soup.h", copy_function = "g_boxed_copy", free_function =
"g_boxed_free", type_id = "soup_hsts_policy_get_type ()")]
+ [Compact]
+ [Version (since = "2.68")]
+ public class HSTSPolicy {
+ public weak string domain;
+ public weak Soup.Date expires;
+ public bool include_subdomains;
+ public ulong max_age;
+ [CCode (has_construct_function = false)]
+ public HSTSPolicy (string domain, ulong max_age, bool include_subdomains);
+ public Soup.HSTSPolicy copy ();
+ public bool equal (Soup.HSTSPolicy policy2);
+ public void free ();
+ [CCode (has_construct_function = false)]
+ public HSTSPolicy.from_response (Soup.Message msg);
+ [CCode (has_construct_function = false)]
+ public HSTSPolicy.full (string domain, ulong max_age, Soup.Date expires, bool
include_subdomains);
+ public unowned string get_domain ();
+ public bool includes_subdomains ();
+ public bool is_expired ();
+ public bool is_session_policy ();
+ [CCode (has_construct_function = false)]
+ public HSTSPolicy.session_policy (string domain, bool include_subdomains);
+ }
[CCode (cheader_filename = "libsoup/soup.h", type_id = "soup_logger_get_type ()")]
public class Logger : GLib.Object, Soup.SessionFeature {
[CCode (has_construct_function = false)]
@@ -1655,6 +1704,10 @@ namespace Soup {
[CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_FORM_MIME_TYPE_URLENCODED")]
[Version (since = "2.26")]
public const string FORM_MIME_TYPE_URLENCODED;
+ [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_HSTS_ENFORCER_DB_FILENAME")]
+ public const string HSTS_ENFORCER_DB_FILENAME;
+ [CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_HSTS_POLICY_MAX_AGE_PAST")]
+ public const int HSTS_POLICY_MAX_AGE_PAST;
[CCode (cheader_filename = "libsoup/soup.h", cname = "SOUP_LOGGER_LEVEL")]
[Version (since = "2.56")]
public const string LOGGER_LEVEL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]