[vala] gio-2.0: Improve GApplication binding
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] gio-2.0: Improve GApplication binding
- Date: Sun, 20 Jun 2010 00:07:06 +0000 (UTC)
commit 7dccba0de170ab86d1983db2f88c9a7db9866a08
Author: Jürg Billeter <j bitron ch>
Date: Sat Jun 19 21:34:15 2010 +0200
gio-2.0: Improve GApplication binding
vapi/gio-2.0.vapi | 7 ++++---
vapi/packages/gio-2.0/gio-2.0-custom.vala | 6 ++++++
vapi/packages/gio-2.0/gio-2.0.metadata | 4 +++-
3 files changed, 13 insertions(+), 4 deletions(-)
---
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index 4a12406..ee91f38 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -13,7 +13,7 @@ namespace GLib {
[CCode (cheader_filename = "gio/gio.h")]
public class Application : GLib.Object, GLib.Initable {
[CCode (has_construct_function = false)]
- public Application (string appid, int argc, out unowned string argv);
+ public Application (string appid, [CCode (array_length_pos = 1.9)] ref unowned string[]? argv = null);
public void add_action (string name, string description);
public unowned string get_action_description (string name);
public bool get_action_enabled (string name);
@@ -21,6 +21,9 @@ namespace GLib {
public static unowned GLib.Application get_instance ();
public void invoke_action (string name, GLib.Variant platform_data);
public unowned string list_actions ();
+ [CCode (cname = "g_application_quit_with_data")]
+ public bool quit (GLib.Variant? platform_data = null);
+ public bool register ();
public void remove_action (string name);
public virtual void run ();
public void set_action_enabled (string name, bool enabled);
@@ -36,8 +39,6 @@ namespace GLib {
public bool is_remote { get; }
[NoAccessorMethod]
public GLib.Variant platform_data { owned get; construct; }
- [NoAccessorMethod]
- public bool register { get; construct; }
public virtual signal void action_with_data (string action_name, GLib.Variant platform_data);
public virtual signal void prepare_activation (GLib.Variant arguments, GLib.Variant platform_data);
[HasEmitter]
diff --git a/vapi/packages/gio-2.0/gio-2.0-custom.vala b/vapi/packages/gio-2.0/gio-2.0-custom.vala
index ae52b16..f3e6b0e 100644
--- a/vapi/packages/gio-2.0/gio-2.0-custom.vala
+++ b/vapi/packages/gio-2.0/gio-2.0-custom.vala
@@ -45,5 +45,11 @@ namespace GLib {
public static GLib.HashFunc file_hash;
[CCode (cname = "g_file_equal", cheader_filename = "gio/gio.h")]
public static GLib.EqualFunc file_equal;
+
+ [CCode (cname = "GApplication")]
+ public class Application {
+ [CCode (cname = "g_application_quit_with_data")]
+ public bool quit (GLib.Variant? platform_data = null);
+ }
}
diff --git a/vapi/packages/gio-2.0/gio-2.0.metadata b/vapi/packages/gio-2.0/gio-2.0.metadata
index 3e711df..bb8c910 100644
--- a/vapi/packages/gio-2.0/gio-2.0.metadata
+++ b/vapi/packages/gio-2.0/gio-2.0.metadata
@@ -139,9 +139,11 @@ g_io_scheduler_*.notify nullable="1"
g_memory_input_stream_*.destroy nullable="1"
g_memory_output_stream_*.destroy_function nullable="1"
+g_application_new.argc hidden="1"
+g_application_new.argv is_array="1" is_ref="1" array_length_pos="1.9" nullable="1" default_value="null"
g_application_is_remote hidden="1"
GApplication::quit_with_data has_emitter="1"
-g_application_register hidden="1"
+GApplication:register hidden="1"
GDBusAuthObserver::authorize_authenticated_peer has_emitter="1"
GDBusConnection:closed hidden="1"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]