diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2017-05-04 22:41:31 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2017-05-04 22:41:31 +0200 |
commit | abde183a0e42c3fe5dd71443592fb9a292c3350d (patch) | |
tree | 4a5804afc74e8d2d0e5de299eb1a5f37da87dd7b /vapi | |
parent | 10c668de04c6e44a9919d6ca5a4976e81d9bbc32 (diff) | |
download | vala-abde183a0e42c3fe5dd71443592fb9a292c3350d.tar.gz |
vapi: Update GIR-based bindings
Diffstat (limited to 'vapi')
-rw-r--r-- | vapi/gio-2.0.vapi | 10 | ||||
-rw-r--r-- | vapi/gtk+-4.0.vapi | 38 | ||||
-rw-r--r-- | vapi/metadata/Gtk-4.0.metadata | 3 | ||||
-rw-r--r-- | vapi/webkit2gtk-4.0.vapi | 20 | ||||
-rw-r--r-- | vapi/webkit2gtk-web-extension-4.0.vapi | 39 |
5 files changed, 73 insertions, 37 deletions
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi index 2ac46b925..e1469759e 100644 --- a/vapi/gio-2.0.vapi +++ b/vapi/gio-2.0.vapi @@ -2448,7 +2448,7 @@ namespace GLib { public bool listen () throws GLib.Error; public ssize_t receive ([CCode (array_length_cname = "size", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] buffer, GLib.Cancellable? cancellable = null) throws GLib.Error; public ssize_t receive_from (out GLib.SocketAddress address, [CCode (array_length_cname = "size", array_length_pos = 2.5, array_length_type = "gsize")] uint8[] buffer, GLib.Cancellable? cancellable = null) throws GLib.Error; - public ssize_t receive_message (out GLib.SocketAddress address, [CCode (array_length_cname = "num_vectors", array_length_pos = 2.5)] GLib.InputVector[] vectors, [CCode (array_length_cname = "num_messages", array_length_pos = 3.5)] out GLib.SocketControlMessage[] messages, ref int flags, GLib.Cancellable? cancellable = null) throws GLib.Error; + public ssize_t receive_message (out GLib.SocketAddress address, [CCode (array_length_cname = "num_vectors", array_length_pos = 2.5)] GLib.InputVector[] vectors, [CCode (array_length_cname = "num_messages", array_length_pos = 3.5)] out GLib.SocketControlMessage[]? messages, ref int flags, GLib.Cancellable? cancellable = null) throws GLib.Error; [Version (since = "2.48")] public int receive_messages ([CCode (array_length_cname = "num_messages", array_length_pos = 1.5, array_length_type = "guint")] GLib.InputMessage[] messages, int flags, GLib.Cancellable? cancellable = null) throws GLib.Error; [Version (since = "2.26")] @@ -2619,10 +2619,10 @@ namespace GLib { public class SocketListener : GLib.Object { [CCode (has_construct_function = false)] public SocketListener (); - public GLib.SocketConnection accept (out unowned GLib.Object source_object = null, GLib.Cancellable? cancellable = null) throws GLib.Error; - public async GLib.SocketConnection accept_async (GLib.Cancellable? cancellable = null, out unowned GLib.Object source_object = null) throws GLib.Error; - public GLib.Socket accept_socket (out unowned GLib.Object source_object = null, GLib.Cancellable? cancellable = null) throws GLib.Error; - public async GLib.Socket accept_socket_async (GLib.Cancellable? cancellable = null, out unowned GLib.Object source_object = null) throws GLib.Error; + public GLib.SocketConnection accept (out unowned GLib.Object? source_object = null, GLib.Cancellable? cancellable = null) throws GLib.Error; + public async GLib.SocketConnection accept_async (GLib.Cancellable? cancellable = null, out unowned GLib.Object? source_object = null) throws GLib.Error; + public GLib.Socket accept_socket (out unowned GLib.Object? source_object = null, GLib.Cancellable? cancellable = null) throws GLib.Error; + public async GLib.Socket accept_socket_async (GLib.Cancellable? cancellable = null, out unowned GLib.Object? source_object = null) throws GLib.Error; public bool add_address (GLib.SocketAddress address, GLib.SocketType type, GLib.SocketProtocol protocol, GLib.Object? source_object, out GLib.SocketAddress effective_address) throws GLib.Error; [Version (since = "2.24")] public uint16 add_any_inet_port (GLib.Object? source_object) throws GLib.Error; diff --git a/vapi/gtk+-4.0.vapi b/vapi/gtk+-4.0.vapi index b32734b9f..3b910632d 100644 --- a/vapi/gtk+-4.0.vapi +++ b/vapi/gtk+-4.0.vapi @@ -4654,12 +4654,6 @@ namespace Gdk { [Version (since = "2.24")] public bool utf8_to_compound_text (string str, out Gdk.Atom encoding, out int format, [CCode (array_length_cname = "length", array_length_pos = 4.1)] out uint8[] ctext); } - [CCode (cheader_filename = "gdk/gdkx.h", type_id = "gdk_x11_display_manager_get_type ()")] - [GIR (name = "X11DisplayManager")] - public class DisplayManager : Gdk.DisplayManager { - [CCode (has_construct_function = false)] - protected DisplayManager (); - } [CCode (cheader_filename = "gdk/gdkx.h", type_id = "gdk_x11_drag_context_get_type ()")] [GIR (name = "X11DragContext")] public class DragContext : Gdk.DragContext { @@ -4727,8 +4721,6 @@ namespace Gdk { public void set_frame_extents (int left, int right, int top, int bottom); [Version (since = "3.8")] public void set_frame_sync_enabled (bool frame_sync_enabled); - [Version (since = "3.4")] - public void set_hide_titlebar_when_maximized (bool hide_titlebar_when_maximized); [Version (since = "3.2")] public void set_theme_variant (string variant); [Version (since = "2.6")] @@ -6890,6 +6882,8 @@ namespace Gsk { protected RenderNode (); [CCode (cname = "gsk_blend_node_new", has_construct_function = false)] public RenderNode.blend (Gsk.RenderNode bottom, Gsk.RenderNode top, Gsk.BlendMode blend_mode); + [CCode (cname = "gsk_blend_node_get_blend_mode")] + public Gsk.BlendMode blend_node_get_blend_mode (); [CCode (cname = "gsk_border_node_new", has_construct_function = false)] public RenderNode.border (Gsk.RoundedRect outline, float border_width, Gdk.RGBA border_color); [CCode (cname = "gsk_cairo_node_new", has_construct_function = false)] @@ -6938,7 +6932,7 @@ namespace Gsk { public unowned Gsk.RenderNode rounded_clip_node_get_child (); public GLib.Bytes serialize (); public void set_name (string? name); - public void set_scaling_filter (Gsk.ScalingFilter min_filter, Gsk.ScalingFilter mag_filter); + public void set_scaling_filters (Gsk.ScalingFilter min_filter, Gsk.ScalingFilter mag_filter); [CCode (cname = "gsk_shadow_node_new", has_construct_function = false)] public RenderNode.shadow (Gsk.RenderNode child, [CCode (array_length_cname = "n_shadows", array_length_pos = 2.1, array_length_type = "gsize")] Gsk.Shadow[] shadows); [CCode (cname = "gsk_transform_node_new", has_construct_function = false)] @@ -7654,19 +7648,15 @@ namespace Gtk { public Box (Gtk.Orientation orientation, int spacing); [Version (since = "3.10")] public Gtk.BaselinePosition get_baseline_position (); - [Version (since = "3.12")] - public unowned Gtk.Widget? get_center_widget (); public bool get_homogeneous (); public int get_spacing (); - public void pack_end (Gtk.Widget child, bool expand = true, bool fill = true); - public void pack_start (Gtk.Widget child, bool expand = true, bool fill = true); - public void query_child_packing (Gtk.Widget child, out bool expand, out bool fill, out Gtk.PackType pack_type); + public void pack_end (Gtk.Widget child); + public void pack_start (Gtk.Widget child); + public void query_child_packing (Gtk.Widget child, out Gtk.PackType pack_type); public void reorder_child (Gtk.Widget child, int position); [Version (since = "3.10")] public void set_baseline_position (Gtk.BaselinePosition position); - [Version (since = "3.12")] - public void set_center_widget (Gtk.Widget? widget); - public void set_child_packing (Gtk.Widget child, bool expand, bool fill, Gtk.PackType pack_type); + public void set_child_packing (Gtk.Widget child, Gtk.PackType pack_type); public void set_homogeneous (bool homogeneous); public void set_spacing (int spacing); public Gtk.BaselinePosition baseline_position { get; set; } @@ -10335,8 +10325,6 @@ namespace Gtk { public class Label : Gtk.Widget, Atk.Implementor, Gtk.Buildable { [CCode (has_construct_function = false, type = "GtkWidget*")] public Label (string? str); - [Version (since = "2.6")] - public double get_angle (); public unowned Pango.AttrList? get_attributes (); [Version (since = "2.18")] public unowned string get_current_uri (); @@ -10371,8 +10359,6 @@ namespace Gtk { [Version (since = "3.16")] public float get_yalign (); public void select_region (int start_offset, int end_offset); - [Version (since = "2.6")] - public void set_angle (double angle); public void set_attributes (Pango.AttrList? attrs); [Version (since = "2.6")] public void set_ellipsize (Pango.EllipsizeMode mode); @@ -10406,8 +10392,6 @@ namespace Gtk { public void set_yalign (float yalign); [CCode (has_construct_function = false, type = "GtkWidget*")] public Label.with_mnemonic (string? str); - [Version (since = "2.6")] - public double angle { get; set; } public Pango.AttrList attributes { get; set; } [NoAccessorMethod] public int cursor_position { get; } @@ -14497,6 +14481,8 @@ namespace Gtk { public void input_shape_combine_region (Cairo.Region? region); [Version (since = "3.6")] public void insert_action_group (string name, GLib.ActionGroup? group); + public void insert_after (Gtk.Widget parent, Gtk.Widget previous_sibling); + public void insert_before (Gtk.Widget parent, Gtk.Widget next_sibling); [CCode (cname = "gtk_widget_class_install_style_property")] public class void install_style_property (GLib.ParamSpec pspec); public bool intersect (Gdk.Rectangle area, out Gdk.Rectangle? intersection = null); @@ -14904,8 +14890,6 @@ namespace Gtk { public Gdk.Gravity get_gravity (); [Version (since = "2.10")] public unowned Gtk.WindowGroup get_group (); - [Version (since = "3.4")] - public bool get_hide_titlebar_when_maximized (); public unowned Gdk.Pixbuf get_icon (); public GLib.List<weak Gdk.Pixbuf> get_icon_list (); [Version (since = "2.6")] @@ -14975,8 +14959,6 @@ namespace Gtk { public void set_gravity (Gdk.Gravity gravity); [Version (since = "3.0")] public void set_has_user_ref_count (bool setting); - [Version (since = "3.4")] - public void set_hide_titlebar_when_maximized (bool setting); public void set_icon (Gdk.Pixbuf? icon); [Version (since = "2.2")] public bool set_icon_from_file (string filename) throws GLib.Error; @@ -15041,8 +15023,6 @@ namespace Gtk { public bool focus_visible { get; set; } [Version (since = "2.4")] public Gdk.Gravity gravity { get; set; } - [Version (since = "3.4")] - public bool hide_titlebar_when_maximized { get; set; } public Gdk.Pixbuf icon { get; set; } [Version (since = "2.6")] public string icon_name { get; set; } diff --git a/vapi/metadata/Gtk-4.0.metadata b/vapi/metadata/Gtk-4.0.metadata index 03f457ebc..396a2b292 100644 --- a/vapi/metadata/Gtk-4.0.metadata +++ b/vapi/metadata/Gtk-4.0.metadata @@ -152,9 +152,6 @@ Builder // Bug #: Default values Button .new_from_icon_name.size default=Gtk.IconSize.BUTTON -Box - .pack_*.expand default=true - .pack_*.fill default=true CellAreaBox .pack_*.align default=false .pack_*.fixed default=true diff --git a/vapi/webkit2gtk-4.0.vapi b/vapi/webkit2gtk-4.0.vapi index df78fa3a6..30fb4793d 100644 --- a/vapi/webkit2gtk-4.0.vapi +++ b/vapi/webkit2gtk-4.0.vapi @@ -29,6 +29,17 @@ namespace WebKit { [Version (since = "2.2")] public signal void cancelled (); } + [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_automation_session_get_type ()")] + public class AutomationSession : GLib.Object { + [CCode (has_construct_function = false)] + protected AutomationSession (); + [Version (since = "2.18")] + public unowned string get_id (); + [Version (since = "2.18")] + public string id { get; construct; } + [Version (since = "2.18")] + public signal unowned WebKit.WebView create_web_view (); + } [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_back_forward_list_get_type ()")] public class BackForwardList : GLib.Object { [CCode (has_construct_function = false)] @@ -806,11 +817,15 @@ namespace WebKit { public uint get_web_process_count_limit (); [Version (since = "2.10")] public unowned WebKit.WebsiteDataManager get_website_data_manager (); + [Version (since = "2.18")] + public bool is_automation_allowed (); [Version (since = "2.16")] public bool is_ephemeral (); public void prefetch_dns (string hostname); public void register_uri_scheme (string scheme, owned WebKit.URISchemeRequestCallback callback); public void set_additional_plugins_directory (string directory); + [Version (since = "2.18")] + public void set_automation_allowed (bool allowed); public void set_cache_model (WebKit.CacheModel cache_model); [Version (deprecated = true, deprecated_since = "2.10.")] public void set_disk_cache_directory (string directory); @@ -836,6 +851,8 @@ namespace WebKit { public string local_storage_directory { owned get; construct; } [Version (since = "2.10")] public WebKit.WebsiteDataManager website_data_manager { get; construct; } + [Version (since = "2.18")] + public virtual signal void automation_started (WebKit.AutomationSession session); public virtual signal void download_started (WebKit.Download download); [HasEmitter] [Version (since = "2.16")] @@ -966,6 +983,9 @@ namespace WebKit { public double estimated_load_progress { get; } public void* favicon { get; } [NoAccessorMethod] + [Version (since = "2.18")] + public bool is_controlled_by_automation { get; construct; } + [NoAccessorMethod] [Version (since = "2.16")] public bool is_ephemeral { get; construct; } [NoAccessorMethod] diff --git a/vapi/webkit2gtk-web-extension-4.0.vapi b/vapi/webkit2gtk-web-extension-4.0.vapi index d8ea4242b..3477657ca 100644 --- a/vapi/webkit2gtk-web-extension-4.0.vapi +++ b/vapi/webkit2gtk-web-extension-4.0.vapi @@ -129,6 +129,41 @@ namespace WebKit { public string data { owned get; set; } public ulong length { get; } } + [CCode (cheader_filename = "webkit2/webkit-web-extension.h", type_id = "webkit_dom_client_rect_get_type ()")] + [GIR (name = "DOMClientRect")] + public class ClientRect : WebKit.DOM.Object { + [CCode (has_construct_function = false)] + protected ClientRect (); + [Version (since = "2.18")] + public float get_bottom (); + [Version (since = "2.18")] + public float get_height (); + [Version (since = "2.18")] + public float get_left (); + [Version (since = "2.18")] + public float get_right (); + [Version (since = "2.18")] + public float get_top (); + [Version (since = "2.18")] + public float get_width (); + public float bottom { get; } + public float height { get; } + public float left { get; } + public float right { get; } + public float top { get; } + public float width { get; } + } + [CCode (cheader_filename = "webkit2/webkit-web-extension.h", type_id = "webkit_dom_client_rect_list_get_type ()")] + [GIR (name = "DOMClientRectList")] + public class ClientRectList : WebKit.DOM.Object { + [CCode (has_construct_function = false)] + protected ClientRectList (); + [Version (since = "2.18")] + public ulong get_length (); + [Version (since = "2.18")] + public unowned WebKit.DOM.ClientRect item (ulong index); + public ulong length { get; } + } [CCode (cheader_filename = "webkit2/webkit-web-extension.h", type_id = "webkit_dom_comment_get_type ()")] [GIR (name = "DOMComment")] public class Comment : WebKit.DOM.CharacterData, WebKit.DOM.EventTarget { @@ -628,6 +663,8 @@ namespace WebKit { public unowned WebKit.DOM.Attr get_attribute_node_ns (string namespaceURI, string localName); public string get_attribute_ns (string namespaceURI, string localName); public WebKit.DOM.NamedNodeMap get_attributes (); + [Version (since = "2.18")] + public WebKit.DOM.ClientRect get_bounding_client_rect (); public ulong get_child_element_count (); [Version (since = "2.10")] public WebKit.DOM.HTMLCollection get_children (); @@ -636,6 +673,8 @@ namespace WebKit { public string get_class_name (); public double get_client_height (); public double get_client_left (); + [Version (since = "2.18")] + public WebKit.DOM.ClientRectList get_client_rects (); public double get_client_top (); public double get_client_width (); [Version (deprecated = true, deprecated_since = "2.12")] |