[vala] vapi: Update GIR-based bindings
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] vapi: Update GIR-based bindings
- Date: Thu, 26 Feb 2015 13:12:37 +0000 (UTC)
commit 4dbf465820f58f38f536c72c5f3e65e59086b38f
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Thu Feb 26 14:12:10 2015 +0100
vapi: Update GIR-based bindings
vapi/clutter-x11-1.0.vapi | 4 ++++
vapi/gio-2.0.vapi | 15 ++++++++++++++-
vapi/gobject-introspection-1.0.vapi | 2 ++
vapi/libsoup-2.4.vapi | 12 +++++++-----
vapi/webkit2gtk-4.0.vapi | 16 +++++++++++++++-
5 files changed, 42 insertions(+), 7 deletions(-)
---
diff --git a/vapi/clutter-x11-1.0.vapi b/vapi/clutter-x11-1.0.vapi
index fca8ce6..1d21de0 100644
--- a/vapi/clutter-x11-1.0.vapi
+++ b/vapi/clutter-x11-1.0.vapi
@@ -91,6 +91,8 @@ namespace ClutterX11 {
[CCode (cheader_filename = "clutter/x11/clutter-x11.h")]
public static bool get_use_argb_visual ();
[CCode (cheader_filename = "clutter/x11/clutter-x11.h")]
+ public static bool get_use_stereo_stage ();
+ [CCode (cheader_filename = "clutter/x11/clutter-x11.h")]
public static X.VisualInfo? get_visual_info ();
[CCode (cheader_filename = "clutter/x11/clutter-x11.h")]
public static ClutterX11.FilterReturn handle_event (X.Event xevent);
@@ -109,6 +111,8 @@ namespace ClutterX11 {
[CCode (cheader_filename = "clutter/x11/clutter-x11.h")]
public static void set_use_argb_visual (bool use_argb);
[CCode (cheader_filename = "clutter/x11/clutter-x11.h")]
+ public static void set_use_stereo_stage (bool use_stereo);
+ [CCode (cheader_filename = "clutter/x11/clutter-x11.h")]
public static void trap_x_errors ();
[CCode (cheader_filename = "clutter/x11/clutter-x11.h")]
public static int untrap_x_errors ();
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index f1eabb9..87b7d05 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -288,7 +288,7 @@ namespace GLib {
public virtual void after_emit (GLib.Variant platform_data);
[NoWrapper]
public virtual void before_emit (GLib.Variant platform_data);
- public void bind_busy_property (void* object, string? property);
+ public void bind_busy_property (void* object, string property);
[NoWrapper]
public virtual bool dbus_register (GLib.DBusConnection connection, string object_path) throws
GLib.Error;
[NoWrapper]
@@ -299,6 +299,7 @@ namespace GLib {
public static unowned GLib.Application get_default ();
public GLib.ApplicationFlags get_flags ();
public uint get_inactivity_timeout ();
+ public bool get_is_busy ();
public bool get_is_registered ();
public bool get_is_remote ();
public unowned string? get_resource_base_path ();
@@ -323,12 +324,14 @@ namespace GLib {
public void set_flags (GLib.ApplicationFlags flags);
public void set_inactivity_timeout (uint inactivity_timeout);
public void set_resource_base_path (string? resource_path);
+ public void unbind_busy_property (void* object, string property);
public void unmark_busy ();
public void withdraw_notification (string id);
public GLib.ActionGroup action_group { set; }
public string application_id { get; set construct; }
public GLib.ApplicationFlags flags { get; set; }
public uint inactivity_timeout { get; set; }
+ public bool is_busy { get; }
public bool is_registered { get; }
public bool is_remote { get; }
public string resource_base_path { get; set; }
@@ -1008,6 +1011,7 @@ namespace GLib {
public unowned GLib.File get_container ();
public bool has_pending ();
public bool is_closed ();
+ public bool iterate (out unowned GLib.FileInfo out_info, out unowned GLib.File out_child,
GLib.Cancellable? cancellable = null) throws GLib.Error;
public virtual GLib.FileInfo? next_file (GLib.Cancellable? cancellable = null) throws
GLib.Error;
public virtual async GLib.List<GLib.FileInfo> next_files_async (int num_files, int
io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
public void set_pending (bool pending);
@@ -1909,6 +1913,15 @@ namespace GLib {
public void set_op_res_gssize (ssize_t op_res);
public void take_error (GLib.Error error);
}
+ [CCode (cheader_filename = "gio/gio.h", type_id = "g_simple_io_stream_get_type ()")]
+ public class SimpleIOStream : GLib.IOStream {
+ [CCode (has_construct_function = false, type = "GIOStream*")]
+ public SimpleIOStream (GLib.InputStream input_stream, GLib.OutputStream output_stream);
+ [NoAccessorMethod]
+ public GLib.InputStream input_stream { owned get; construct; }
+ [NoAccessorMethod]
+ public GLib.OutputStream output_stream { owned get; construct; }
+ }
[CCode (cheader_filename = "gio/gio.h", type_id = "g_simple_permission_get_type ()")]
public class SimplePermission : GLib.Permission {
[CCode (has_construct_function = false, type = "GPermission*")]
diff --git a/vapi/gobject-introspection-1.0.vapi b/vapi/gobject-introspection-1.0.vapi
index c5552bd..1b3c698 100644
--- a/vapi/gobject-introspection-1.0.vapi
+++ b/vapi/gobject-introspection-1.0.vapi
@@ -185,6 +185,8 @@ namespace GI {
public static unowned GI.Repository get_default ();
[CCode (array_length = false, array_null_terminated = true)]
public string[] get_dependencies (string namespace_);
+ [CCode (array_length = false, array_null_terminated = true)]
+ public string[] get_immediate_dependencies (string namespace_);
public GI.BaseInfo get_info (string namespace_, int index);
[CCode (array_length = false, array_null_terminated = true)]
public string[] get_loaded_namespaces ();
diff --git a/vapi/libsoup-2.4.vapi b/vapi/libsoup-2.4.vapi
index 13031fb..841b5ea 100644
--- a/vapi/libsoup-2.4.vapi
+++ b/vapi/libsoup-2.4.vapi
@@ -246,13 +246,13 @@ namespace Soup {
[Compact]
public class ClientContext {
[Deprecated]
- public unowned Soup.Address get_address ();
+ public unowned Soup.Address? get_address ();
public unowned Soup.AuthDomain? get_auth_domain ();
public unowned string? get_auth_user ();
- public unowned GLib.Socket get_gsocket ();
- public unowned string get_host ();
- public unowned GLib.SocketAddress get_local_address ();
- public unowned GLib.SocketAddress get_remote_address ();
+ public unowned GLib.Socket? get_gsocket ();
+ public unowned string? get_host ();
+ public unowned GLib.SocketAddress? get_local_address ();
+ public unowned GLib.SocketAddress? get_remote_address ();
[Deprecated]
public unowned Soup.Socket get_socket ();
}
@@ -602,6 +602,7 @@ namespace Soup {
public class Server : GLib.Object {
[CCode (has_construct_function = false)]
public Server (string optname1, ...);
+ public bool accept_iostream (GLib.IOStream stream, GLib.SocketAddress? local_addr,
GLib.SocketAddress? remote_addr) throws GLib.Error;
public void add_auth_domain (Soup.AuthDomain auth_domain);
public void add_handler (string? path, owned Soup.ServerCallback callback);
public void disconnect ();
@@ -791,6 +792,7 @@ namespace Soup {
public bool close_on_dispose { get; set construct; }
public int fd { get; construct; }
public GLib.Socket gsocket { construct; }
+ public GLib.IOStream iostream { construct; }
[NoAccessorMethod]
public bool ipv6_only { get; set; }
[NoAccessorMethod]
diff --git a/vapi/webkit2gtk-4.0.vapi b/vapi/webkit2gtk-4.0.vapi
index c7c0f27..f9e76a3 100644
--- a/vapi/webkit2gtk-4.0.vapi
+++ b/vapi/webkit2gtk-4.0.vapi
@@ -41,6 +41,18 @@ namespace WebKit {
public unowned string get_title ();
public unowned string get_uri ();
}
+ [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_color_chooser_request_get_type ()")]
+ public class ColorChooserRequest : GLib.Object {
+ [CCode (has_construct_function = false)]
+ protected ColorChooserRequest ();
+ public void cancel ();
+ public void finish ();
+ public Gdk.Rectangle get_element_rectangle ();
+ public Gdk.RGBA get_rgba ();
+ public void set_rgba (Gdk.RGBA rgba);
+ public Gdk.RGBA rgba { get; set construct; }
+ public signal void finished ();
+ }
[CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_context_menu_get_type ()")]
public class ContextMenu : GLib.Object {
[CCode (has_construct_function = false)]
@@ -271,12 +283,14 @@ namespace WebKit {
public class Notification : GLib.Object {
[CCode (has_construct_function = false)]
protected Notification ();
+ public void close ();
public unowned string get_body ();
public uint64 get_id ();
public unowned string get_title ();
public string body { get; }
public uint64 id { get; }
public string title { get; }
+ public signal void closed ();
}
[CCode (cheader_filename = "webkit2/webkit2.h", type_id =
"webkit_notification_permission_request_get_type ()")]
public class NotificationPermissionRequest : GLib.Object, WebKit.PermissionRequest {
@@ -726,7 +740,6 @@ namespace WebKit {
public double zoom_level { get; set; }
public virtual signal bool authenticate (WebKit.AuthenticationRequest request);
public virtual signal void close ();
- public virtual signal bool close_notification (WebKit.Notification notification);
public virtual signal bool context_menu (WebKit.ContextMenu context_menu, Gdk.Event event,
WebKit.HitTestResult hit_test_result);
public virtual signal void context_menu_dismissed ();
public signal Gtk.Widget create (WebKit.NavigationAction navigation_action);
@@ -743,6 +756,7 @@ namespace WebKit {
public virtual signal void ready_to_show ();
public virtual signal void resource_load_started (WebKit.WebResource resource,
WebKit.URIRequest request);
public virtual signal void run_as_modal ();
+ public virtual signal bool run_color_chooser (WebKit.ColorChooserRequest request);
public virtual signal bool run_file_chooser (WebKit.FileChooserRequest request);
public virtual signal bool script_dialog (WebKit.ScriptDialog dialog);
public virtual signal bool show_notification (WebKit.Notification notification);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]