]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vapi: Update GIR-based bindings
authorRico Tzschichholz <ricotz@ubuntu.com>
Sun, 21 Jun 2015 14:37:54 +0000 (16:37 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sun, 21 Jun 2015 14:39:58 +0000 (16:39 +0200)
12 files changed:
vapi/clutter-1.0.vapi
vapi/clutter-gdk-1.0.vapi
vapi/gdk-3.0.vapi
vapi/gio-2.0.vapi
vapi/json-glib-1.0.vapi
vapi/libgdata.vapi
vapi/metadata/GdkPixbuf-2.0.metadata
vapi/metadata/Gio-2.0-custom.vala
vapi/metadata/Gio-2.0.metadata
vapi/pango.vapi
vapi/webkit2gtk-4.0.vapi
vapi/webkit2gtk-web-extension-4.0.vapi

index 25a375ac5710f06996acaf59bb2226ca1e610c81..a3cafcdb4534d3cb70451a0e3b5c723b93bc34e5 100644 (file)
@@ -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 {
index a461479e697806cdbe408c787b71b838619481ad..36e2a6b4cb1bd7d895234515855cc24b76691f99 100644 (file)
@@ -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);
index 18a81c9cffd5e47c448ac92d373c212c60a04033..22c6ec8f54895839a6b071dc91b327af745a8dfe 100644 (file)
@@ -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);
index 10971c4f40957ff624f79424e308ba2087616b5f..61b8413eff9282baa7fb4fb32b9cd125271fce40 100644 (file)
@@ -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 {
index 6254a8916baf09881293b230c58152147ca64184..30d48902527422b9d25b545677dad7b228e4ad02 100644 (file)
@@ -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);
 }
index 1aa19bef58bbf7a4e22b9c126dd92471091ed43a..ec0af6b0393bca54e5b631f093f72b2d380107ea 100644 (file)
@@ -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 ()")]
index 4026d397077bcd14ac8d60f4abd7ba865072d39e..2dae1677d609a364152e6ff94422774e5f519d11 100644 (file)
@@ -21,3 +21,5 @@ Pixbuf
 
 // Bug #666798: delegates which throw exceptions
 PixbufSaveFunc skip
+
+*_autoptr skip
index a4aad872c8421a12bb9360df1ccec8a154d9c5f3..a16783def376ac1817c47ff968e8f22bbc825e5f 100644 (file)
@@ -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);
index eaa65acfb756791152864ed713db0dc4525bdc9f..c9cd9a6a6945c09cf83ef5d940f517346f6c6d27 100644 (file)
@@ -355,6 +355,7 @@ DataInputStream
 
 // Forward upstream
 *_autoptr skip
+NativeSocketAddress skip
 content_type_from_mime_type nullable
 content_type_get_mime_type nullable
 ActionGroup
index 24c9d10b882d3560acbf18f8bc6d338b18e760b1..e455cf0347353bb26b9a356d23e0e684bcbb7e59 100644 (file)
@@ -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);
        }
index f9e76a34867c569efd05094b8ea4fe88509a1846..fb71248b8964676d9b5d1a7146d7bd0da4360068 100644 (file)
@@ -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; }
index 061c816e02ec6239681f1f7ec6b3d4c3f41d656a..13fed0391c45157c60d6eca6c29e2238a5c466be 100644 (file)
@@ -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]