[vala] vapi: Update GIR-based bindings



commit 56e2dd0b4df20209eb255a2322b902fc8c057a53
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sun Jun 21 16:37:54 2015 +0200

    vapi: Update GIR-based bindings

 vapi/clutter-1.0.vapi                  |    4 +++-
 vapi/clutter-gdk-1.0.vapi              |    2 ++
 vapi/gdk-3.0.vapi                      |    2 ++
 vapi/gio-2.0.vapi                      |   16 +++++++++++++---
 vapi/json-glib-1.0.vapi                |    4 ++++
 vapi/libgdata.vapi                     |   14 ++++++++++++++
 vapi/metadata/GdkPixbuf-2.0.metadata   |    2 ++
 vapi/metadata/Gio-2.0-custom.vala      |    5 +++++
 vapi/metadata/Gio-2.0.metadata         |    1 +
 vapi/pango.vapi                        |    7 ++++++-
 vapi/webkit2gtk-4.0.vapi               |    7 ++++++-
 vapi/webkit2gtk-web-extension-4.0.vapi |   28 +++++++++++++++++++++++++---
 12 files changed, 83 insertions(+), 9 deletions(-)
---
diff --git a/vapi/clutter-1.0.vapi b/vapi/clutter-1.0.vapi
index 25a375a..a3cafcd 100644
--- a/vapi/clutter-1.0.vapi
+++ b/vapi/clutter-1.0.vapi
@@ -6233,6 +6233,7 @@ namespace Clutter {
                [CCode (has_construct_function = false, type = "ClutterAction*")]
                public PanAction ();
                public double get_acceleration_factor ();
+               public float get_constrained_motion_delta (uint point, out float delta_x, out float delta_y);
                public double get_deceleration ();
                public bool get_interpolate ();
                public void get_interpolated_coords (out float interpolated_x, out float interpolated_y);
@@ -7905,7 +7906,8 @@ namespace Clutter {
        public enum PanAxis {
                AXIS_NONE,
                X_AXIS,
-               Y_AXIS
+               Y_AXIS,
+               AXIS_AUTO
        }
        [CCode (cheader_filename = "clutter/clutter.h", cprefix = "CLUTTER_PATH_", type_id = 
"clutter_path_node_type_get_type ()")]
        public enum PathNodeType {
diff --git a/vapi/clutter-gdk-1.0.vapi b/vapi/clutter-gdk-1.0.vapi
index a461479..36e2a6b 100644
--- a/vapi/clutter-gdk-1.0.vapi
+++ b/vapi/clutter-gdk-1.0.vapi
@@ -11,6 +11,8 @@ namespace ClutterGdk {
        [CCode (cheader_filename = "clutter/gdk/clutter-gdk.h")]
        public static unowned Gdk.Window get_stage_window (Clutter.Stage stage);
        [CCode (cheader_filename = "clutter/gdk/clutter-gdk.h")]
+       public static unowned Gdk.Visual get_visual ();
+       [CCode (cheader_filename = "clutter/gdk/clutter-gdk.h")]
        public static Gdk.FilterReturn handle_event (Gdk.Event event);
        [CCode (cheader_filename = "clutter/gdk/clutter-gdk.h")]
        public static void set_display (Gdk.Display display);
diff --git a/vapi/gdk-3.0.vapi b/vapi/gdk-3.0.vapi
index 18a81c9..22c6ec8 100644
--- a/vapi/gdk-3.0.vapi
+++ b/vapi/gdk-3.0.vapi
@@ -5244,6 +5244,7 @@ namespace Gdk {
                public bool get_modal_hint ();
                public int get_origin (out int x, out int y);
                public unowned Gdk.Window get_parent ();
+               public bool get_pass_through ();
                [Deprecated (since = "3.0")]
                public unowned Gdk.Window? get_pointer (out int x, out int y, out Gdk.ModifierType mask);
                public void get_position (out int x, out int y);
@@ -5321,6 +5322,7 @@ namespace Gdk {
                public void set_opacity (double opacity);
                public void set_opaque_region (Cairo.Region? region);
                public void set_override_redirect (bool override_redirect);
+               public void set_pass_through (bool pass_through);
                public void set_role (string role);
                public void set_shadow_width (int left, int right, int top, int bottom);
                public void set_skip_pager_hint (bool skips_pager);
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index 10971c4..61b8413 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -1551,6 +1551,10 @@ namespace GLib {
                public signal void show_processes (string message, GLib.Array<GLib.Pid> processes, [CCode 
(array_length = false, array_null_terminated = true)] string[] choices);
                public virtual signal void show_unmount_progress (string message, int64 time_left, int64 
bytes_left);
        }
+       [CCode (cheader_filename = "gio/gio.h", type_id = "g_native_socket_address_get_type ()")]
+       public class NativeSocketAddress : GLib.SocketAddress {
+               public NativeSocketAddress (void* native, size_t len);
+       }
        [CCode (cheader_filename = "gio/gio.h")]
        public abstract class NativeVolumeMonitor : GLib.VolumeMonitor {
                [CCode (has_construct_function = false)]
@@ -1655,6 +1659,8 @@ namespace GLib {
        public class PropertyAction : GLib.Object, GLib.Action {
                [CCode (has_construct_function = false)]
                public PropertyAction (string name, GLib.Object object, string property_name);
+               [NoAccessorMethod]
+               public bool invert_boolean { get; construct; }
                public GLib.Object object { construct; }
                public string property_name { construct; }
        }
@@ -1830,6 +1836,8 @@ namespace GLib {
                public bool has_key (string name);
                [CCode (array_length = false, array_null_terminated = true)]
                public string[] list_children ();
+               [CCode (array_length = false, array_null_terminated = true)]
+               public string[] list_keys ();
                public GLib.SettingsSchema @ref ();
                public void unref ();
        }
@@ -2093,7 +2101,7 @@ namespace GLib {
                public GLib.TlsCertificateFlags tls_validation_flags { get; set construct; }
                [NoAccessorMethod]
                public GLib.SocketType type { get; set construct; }
-               public virtual signal void event (GLib.SocketClientEvent event, GLib.SocketConnectable 
connectable, GLib.IOStream connection);
+               public virtual signal void event (GLib.SocketClientEvent event, GLib.SocketConnectable 
connectable, GLib.IOStream? connection);
        }
        [CCode (cheader_filename = "gio/gio.h")]
        public class SocketConnection : GLib.IOStream {
@@ -3111,7 +3119,8 @@ namespace GLib {
        [Flags]
        public enum DBusCallFlags {
                NONE,
-               NO_AUTO_START
+               NO_AUTO_START,
+               ALLOW_INTERACTIVE_AUTHORIZATION
        }
        [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_CAPABILITY_FLAGS_", type_id = 
"g_dbus_capability_flags_get_type ()")]
        [Flags]
@@ -3145,7 +3154,8 @@ namespace GLib {
        public enum DBusMessageFlags {
                NONE,
                NO_REPLY_EXPECTED,
-               NO_AUTO_START
+               NO_AUTO_START,
+               ALLOW_INTERACTIVE_AUTHORIZATION
        }
        [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_MESSAGE_HEADER_FIELD_", type_id = 
"g_dbus_message_header_field_get_type ()")]
        public enum DBusMessageHeaderField {
diff --git a/vapi/json-glib-1.0.vapi b/vapi/json-glib-1.0.vapi
index 6254a89..30d4890 100644
--- a/vapi/json-glib-1.0.vapi
+++ b/vapi/json-glib-1.0.vapi
@@ -285,6 +285,8 @@ namespace Json {
        [Deprecated (replacement = "Json.gobject_from_data", since = "0.10")]
        public static GLib.Object construct_gobject (GLib.Type gtype, string data, size_t length) throws 
GLib.Error;
        [CCode (cheader_filename = "json-glib/json-glib.h")]
+       public static Json.Node from_string (string str) throws GLib.Error;
+       [CCode (cheader_filename = "json-glib/json-glib.h")]
        public static GLib.Object gobject_deserialize (GLib.Type gtype, Json.Node node);
        [CCode (cheader_filename = "json-glib/json-glib.h")]
        public static GLib.Object gobject_from_data (GLib.Type gtype, string data, ssize_t length = -1) 
throws GLib.Error;
@@ -303,4 +305,6 @@ namespace Json {
        [CCode (cheader_filename = "json-glib/json-glib.h,json-glib/json-gobject.h")]
        [Deprecated (replacement = "Json.gobject_to_data", since = "0.10")]
        public static string serialize_gobject (GLib.Object gobject, out size_t length);
+       [CCode (cheader_filename = "json-glib/json-glib.h")]
+       public static string to_string (Json.Node node, bool pretty);
 }
diff --git a/vapi/libgdata.vapi b/vapi/libgdata.vapi
index 1aa19be..ec0af6b 100644
--- a/vapi/libgdata.vapi
+++ b/vapi/libgdata.vapi
@@ -149,6 +149,11 @@ namespace GData {
                public string feed_uri { get; construct; }
                public GData.Service service { get; construct; }
        }
+       [CCode (cheader_filename = "gdata/gdata.h", type_id = "gdata_calendar_access_rule_get_type ()")]
+       public class CalendarAccessRule : GData.AccessRule {
+               [CCode (has_construct_function = false)]
+               public CalendarAccessRule (string id);
+       }
        [CCode (cheader_filename = "gdata/gdata.h", type_id = "gdata_calendar_calendar_get_type ()")]
        public class CalendarCalendar : GData.Entry, GData.AccessHandler {
                [CCode (has_construct_function = false)]
@@ -514,6 +519,11 @@ namespace GData {
                public GData.Feed query_groups (GData.Query? query, GLib.Cancellable? cancellable, 
GData.QueryProgressCallback? progress_callback) throws GLib.Error;
                public async void query_groups_async (GData.Query? query, GLib.Cancellable? cancellable, 
owned GData.QueryProgressCallback? progress_callback);
        }
+       [CCode (cheader_filename = "gdata/gdata.h", type_id = "gdata_documents_access_rule_get_type ()")]
+       public class DocumentsAccessRule : GData.AccessRule {
+               [CCode (has_construct_function = false)]
+               public DocumentsAccessRule (string id);
+       }
        [CCode (cheader_filename = "gdata/gdata.h", type_id = "gdata_documents_document_get_type ()")]
        public class DocumentsDocument : GData.DocumentsEntry, GData.AccessHandler {
                [CCode (has_construct_function = false)]
@@ -1317,6 +1327,7 @@ namespace GData {
                [CCode (has_construct_function = false)]
                public OAuth2Authorizer (string client_id, string client_secret, string redirect_uri, 
GLib.Type service_type);
                public string build_authentication_uri (string? login_hint, bool include_granted_scopes);
+               public string dup_refresh_token ();
                [CCode (has_construct_function = false)]
                public OAuth2Authorizer.for_authorization_domains (string client_id, string client_secret, 
string redirect_uri, GLib.List<GData.AuthorizationDomain> authorization_domains);
                public unowned string get_client_id ();
@@ -1329,12 +1340,15 @@ namespace GData {
                public async bool request_authorization_async (string authorization_code, GLib.Cancellable? 
cancellable) throws GLib.Error;
                public void set_locale (string? locale);
                public void set_proxy_resolver (GLib.ProxyResolver? proxy_resolver);
+               public void set_refresh_token (string? refresh_token);
                public void set_timeout (uint timeout);
                public string client_id { get; construct; }
                public string client_secret { get; construct; }
                public string locale { get; set; }
                public GLib.ProxyResolver proxy_resolver { get; set; }
                public string redirect_uri { get; construct; }
+               [NoAccessorMethod]
+               public string refresh_token { owned get; set; }
                public uint timeout { get; set; }
        }
        [CCode (cheader_filename = "gdata/gdata.h", type_id = "gdata_parsable_get_type ()")]
diff --git a/vapi/metadata/GdkPixbuf-2.0.metadata b/vapi/metadata/GdkPixbuf-2.0.metadata
index 4026d39..2dae167 100644
--- a/vapi/metadata/GdkPixbuf-2.0.metadata
+++ b/vapi/metadata/GdkPixbuf-2.0.metadata
@@ -21,3 +21,5 @@ Pixbuf
 
 // Bug #666798: delegates which throw exceptions
 PixbufSaveFunc skip
+
+*_autoptr skip
diff --git a/vapi/metadata/Gio-2.0-custom.vala b/vapi/metadata/Gio-2.0-custom.vala
index a4aad87..a16783d 100644
--- a/vapi/metadata/Gio-2.0-custom.vala
+++ b/vapi/metadata/Gio-2.0-custom.vala
@@ -103,6 +103,11 @@ namespace GLib {
                public MemoryOutputStream ([CCode (array_length_type = "gsize")] owned uint8[]? data, 
GLib.ReallocFunc? realloc_function, GLib.DestroyNotify? destroy_function);
        }
 
+       [CCode (cheader_filename = "gio/gio.h", type_id = "g_native_socket_address_get_type ()")]
+       public class NativeSocketAddress : GLib.SocketAddress {
+               public NativeSocketAddress (void* native, size_t len);
+       }
+
        public abstract class NativeVolumeMonitor : GLib.VolumeMonitor {
                [NoWrapper]
                public abstract GLib.Mount get_mount_for_mount_path (string mount_path, GLib.Cancellable? 
cancellable = null);
diff --git a/vapi/metadata/Gio-2.0.metadata b/vapi/metadata/Gio-2.0.metadata
index eaa65ac..c9cd9a6 100644
--- a/vapi/metadata/Gio-2.0.metadata
+++ b/vapi/metadata/Gio-2.0.metadata
@@ -355,6 +355,7 @@ DataInputStream
 
 // Forward upstream
 *_autoptr skip
+NativeSocketAddress skip
 content_type_from_mime_type nullable
 content_type_get_mime_type nullable
 ActionGroup
diff --git a/vapi/pango.vapi b/vapi/pango.vapi
index 24c9d10..e455cf0 100644
--- a/vapi/pango.vapi
+++ b/vapi/pango.vapi
@@ -536,6 +536,10 @@ namespace Pango {
                public weak Pango.Language language;
                public weak GLib.SList<void*> extra_attrs;
        }
+       [CCode (cheader_filename = "pango/pango.h", has_type_id = false)]
+       public struct AttrFontFeatures {
+               public weak string features;
+       }
        [CCode (cheader_filename = "pango/pango.h", type_id = "pango_color_get_type ()")]
        public struct Color {
                public uint16 red;
@@ -683,7 +687,8 @@ namespace Pango {
                STRIKETHROUGH_COLOR,
                ABSOLUTE_SIZE,
                GRAVITY,
-               GRAVITY_HINT;
+               GRAVITY_HINT,
+               FONT_FEATURES;
                public static unowned string? get_name (Pango.AttrType type);
                public static Pango.AttrType register (string name);
        }
diff --git a/vapi/webkit2gtk-4.0.vapi b/vapi/webkit2gtk-4.0.vapi
index f9e76a3..fb71248 100644
--- a/vapi/webkit2gtk-4.0.vapi
+++ b/vapi/webkit2gtk-4.0.vapi
@@ -371,6 +371,7 @@ namespace WebKit {
        public class Settings : GLib.Object {
                [CCode (has_construct_function = false)]
                public Settings ();
+               public bool get_allow_file_access_from_file_urls ();
                public bool get_allow_modal_dialogs ();
                public bool get_auto_load_images ();
                public unowned string get_cursive_font_family ();
@@ -419,6 +420,7 @@ namespace WebKit {
                public unowned string get_serif_font_family ();
                public unowned string get_user_agent ();
                public bool get_zoom_text_only ();
+               public void set_allow_file_access_from_file_urls (bool allowed);
                public void set_allow_modal_dialogs (bool allowed);
                public void set_auto_load_images (bool enabled);
                public void set_cursive_font_family (string cursive_font_family);
@@ -468,6 +470,7 @@ namespace WebKit {
                public void set_user_agent (string? user_agent);
                public void set_user_agent_with_application_details (string? application_name, string? 
application_version);
                public void set_zoom_text_only (bool zoom_text_only);
+               public bool allow_file_access_from_file_urls { get; set construct; }
                public bool allow_modal_dialogs { get; set construct; }
                public bool auto_load_images { get; set construct; }
                public string cursive_font_family { get; set construct; }
@@ -624,6 +627,8 @@ namespace WebKit {
                public void set_web_extensions_directory (string directory);
                public void set_web_extensions_initialization_user_data (GLib.Variant user_data);
                [NoAccessorMethod]
+               public string indexed_db_directory { owned get; construct; }
+               [NoAccessorMethod]
                public string local_storage_directory { owned get; construct; }
                public virtual signal void download_started (WebKit.Download download);
                public virtual signal void initialize_web_extensions ();
@@ -781,7 +786,7 @@ namespace WebKit {
                public bool get_statusbar_visible ();
                public bool get_toolbar_visible ();
                public bool fullscreen { get; construct; }
-               public Cairo.RectangleInt geometry { get; construct; }
+               public Gdk.Rectangle geometry { get; construct; }
                public bool locationbar_visible { get; construct; }
                public bool menubar_visible { get; construct; }
                public bool resizable { get; construct; }
diff --git a/vapi/webkit2gtk-web-extension-4.0.vapi b/vapi/webkit2gtk-web-extension-4.0.vapi
index 061c816..13fed03 100644
--- a/vapi/webkit2gtk-web-extension-4.0.vapi
+++ b/vapi/webkit2gtk-web-extension-4.0.vapi
@@ -123,6 +123,10 @@ namespace WebKit {
                        public string substring_data (ulong offset, ulong length) throws GLib.Error;
                        public string data { owned get; set; }
                        public ulong length { get; }
+                       [NoAccessorMethod]
+                       public WebKit.DOM.Element next_element_sibling { owned get; }
+                       [NoAccessorMethod]
+                       public WebKit.DOM.Element previous_element_sibling { owned get; }
                }
                [CCode (cheader_filename = "webkit2/webkit-web-extension.h", type_id = 
"webkit_dom_comment_get_type ()")]
                [GIR (name = "DOMComment")]
@@ -290,6 +294,10 @@ namespace WebKit {
                        public string character_set { owned get; }
                        public string charset { owned get; set; }
                        [NoAccessorMethod]
+                       public ulong child_element_count { get; }
+                       [NoAccessorMethod]
+                       public WebKit.DOM.HTMLCollection children { owned get; }
+                       [NoAccessorMethod]
                        public string compat_mode { owned get; }
                        [NoAccessorMethod]
                        public string content_type { owned get; }
@@ -302,6 +310,8 @@ namespace WebKit {
                        public WebKit.DOM.Element document_element { get; }
                        public string document_uri { owned get; set; }
                        public string domain { owned get; }
+                       [NoAccessorMethod]
+                       public WebKit.DOM.Element first_element_child { owned get; }
                        public WebKit.DOM.HTMLCollection forms { owned get; }
                        public WebKit.DOM.HTMLHeadElement head { get; }
                        [NoAccessorMethod]
@@ -309,6 +319,8 @@ namespace WebKit {
                        public WebKit.DOM.HTMLCollection images { owned get; }
                        public WebKit.DOM.DOMImplementation implementation { owned get; }
                        public string input_encoding { owned get; }
+                       [NoAccessorMethod]
+                       public WebKit.DOM.Element last_element_child { owned get; }
                        public string last_modified { owned get; }
                        public WebKit.DOM.HTMLCollection links { owned get; }
                        [NoAccessorMethod]
@@ -318,6 +330,8 @@ namespace WebKit {
                        public string preferred_stylesheet_set { owned get; }
                        public string ready_state { owned get; }
                        public string referrer { owned get; }
+                       [NoAccessorMethod]
+                       public WebKit.DOM.Element scrolling_element { owned get; }
                        public string selected_stylesheet_set { owned get; set; }
                        public WebKit.DOM.StyleSheetList style_sheets { get; }
                        public string title { owned get; set; }
@@ -343,6 +357,14 @@ namespace WebKit {
                public class DocumentFragment : WebKit.DOM.Node, WebKit.DOM.EventTarget {
                        [CCode (has_construct_function = false)]
                        protected DocumentFragment ();
+                       [NoAccessorMethod]
+                       public ulong child_element_count { get; }
+                       [NoAccessorMethod]
+                       public WebKit.DOM.HTMLCollection children { owned get; }
+                       [NoAccessorMethod]
+                       public WebKit.DOM.Element first_element_child { owned get; }
+                       [NoAccessorMethod]
+                       public WebKit.DOM.Element last_element_child { owned get; }
                }
                [CCode (cheader_filename = "webkit2/webkit-web-extension.h", type_id = 
"webkit_dom_document_type_get_type ()")]
                [GIR (name = "DOMDocumentType")]
@@ -375,6 +397,7 @@ namespace WebKit {
                        public string get_attribute_ns (string namespaceURI, string localName);
                        public WebKit.DOM.NamedNodeMap get_attributes ();
                        public ulong get_child_element_count ();
+                       public WebKit.DOM.HTMLCollection get_children ();
                        public string get_class_name ();
                        public double get_client_height ();
                        public double get_client_left ();
@@ -425,6 +448,7 @@ namespace WebKit {
                        public void set_scroll_top (long value);
                        public WebKit.DOM.NamedNodeMap attributes { owned get; }
                        public ulong child_element_count { get; }
+                       public WebKit.DOM.HTMLCollection children { owned get; }
                        public string class_name { owned get; set; }
                        public double client_height { get; }
                        public double client_left { get; }
@@ -855,6 +879,7 @@ namespace WebKit {
                        protected HTMLElement ();
                        public void click ();
                        public string get_access_key ();
+                       [Deprecated (since = "2.10")]
                        public WebKit.DOM.HTMLCollection get_children ();
                        public string get_content_editable ();
                        public string get_dir ();
@@ -881,7 +906,6 @@ namespace WebKit {
                        public void set_tab_index (long value);
                        public void set_title (string value);
                        public string access_key { owned get; set; }
-                       public WebKit.DOM.HTMLCollection children { owned get; }
                        public string content_editable { owned get; set; }
                        public string dir { owned get; set; }
                        [NoAccessorMethod]
@@ -2102,8 +2126,6 @@ namespace WebKit {
                        public long client_x { get; }
                        public long client_y { get; }
                        public bool ctrl_key { get; }
-                       [NoAccessorMethod]
-                       public double force { get; }
                        public WebKit.DOM.Node from_element { get; }
                        public bool meta_key { get; }
                        [NoAccessorMethod]


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