[vala] gio-2.0: Update to GLib master



commit 1100112046fc00c4620582d488278eff5197f95e
Author: Jürg Billeter <j bitron ch>
Date:   Mon Oct 25 15:46:35 2010 +0200

    gio-2.0: Update to GLib master

 vapi/gio-2.0.vapi                          |  133 +++++++---
 vapi/gio-unix-2.0.vapi                     |    6 -
 vapi/packages/gio-2.0/gio-2.0.gi           |  403 ++++++++++++++++++++++------
 vapi/packages/gio-2.0/gio-2.0.metadata     |   11 +-
 vapi/packages/gio-unix-2.0/gio-unix-2.0.gi |   20 --
 5 files changed, 422 insertions(+), 151 deletions(-)
---
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index 48aac82..97dd5e9 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -57,38 +57,69 @@ namespace GLib {
 		public virtual void launch_failed (string startup_notify_id);
 	}
 	[CCode (cheader_filename = "gio/gio.h")]
-	public class Application : GLib.Object, GLib.Initable {
-		[CCode (has_construct_function = false)]
-		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);
-		public unowned string get_id ();
-		public static unowned GLib.Application get_instance ();
-		public void invoke_action (string name, GLib.Variant platform_data);
-		public unowned string list_actions ();
+	public class Application : GLib.Object, GLib.ActionGroup {
+		[CCode (has_construct_function = false)]
+		public Application (string application_id, GLib.ApplicationFlags flags);
+		[NoWrapper]
+		public virtual void add_platform_data (GLib.VariantBuilder builder);
+		[NoWrapper]
+		public virtual void after_emit (GLib.Variant platform_data);
+		[NoWrapper]
+		public virtual void before_emit (GLib.Variant platform_data);
+		public unowned string get_application_id ();
+		public GLib.ApplicationFlags get_flags ();
+		public uint get_inactivity_timeout ();
+		public bool get_is_registered ();
+		public bool get_is_remote ();
+		public void hold ();
+		public static bool id_is_valid (string application_id);
+		[NoWrapper]
+		public virtual bool local_command_line (string arguments, int exit_status);
 		[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);
-		public static unowned GLib.Application try_new (string appid, int argc, out unowned string argv) throws GLib.Error;
-		public static unowned GLib.Application unregistered_try_new (string appid, int argc, out unowned string argv) throws GLib.Error;
-		[NoAccessorMethod]
-		public string application_id { owned get; construct; }
-		[NoAccessorMethod]
-		public GLib.Variant argv { owned get; construct; }
-		[NoAccessorMethod]
-		public bool default_quit { get; construct; }
-		[NoAccessorMethod]
+		[NoWrapper]
+		public virtual void quit_mainloop ();
+		public bool register (GLib.Cancellable? cancellable = null) throws GLib.Error;
+		public void release ();
+		public int run ([CCode (array_length_pos = 1.9)] string[]? argv = null);
+		[NoWrapper]
+		public virtual void run_mainloop ();
+		public void set_action_group (GLib.ActionGroup action_group);
+		public void set_application_id (string application_id);
+		public void set_flags (GLib.ApplicationFlags flags);
+		public void set_inactivity_timeout (uint inactivity_timeout);
+		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_registered { get; }
 		public bool is_remote { get; }
-		[NoAccessorMethod]
-		public GLib.Variant platform_data { owned 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]
-		public virtual signal bool quit_with_data (GLib.Variant? platform_data);
+		public virtual signal void activate ();
+		public virtual signal int command_line (GLib.ApplicationCommandLine command_line);
+		[HasEmitter]
+		public virtual signal void open (GLib.File[] files, string hint);
+		public virtual signal void startup ();
+	}
+	[CCode (cheader_filename = "gio/gio.h")]
+	public class ApplicationCommandLine : GLib.Object {
+		[CCode (has_construct_function = false)]
+		protected ApplicationCommandLine ();
+		public string[] get_arguments ();
+		public unowned string get_cwd ();
+		public int get_exit_status ();
+		public bool get_is_remote ();
+		public GLib.Variant? get_platform_data ();
+		public void print (string format);
+		[NoWrapper]
+		public virtual void print_literal (string message);
+		public void printerr (string format);
+		[NoWrapper]
+		public virtual void printerr_literal (string message);
+		public void set_exit_status (int exit_status);
+		public GLib.Variant arguments { construct; }
+		public bool is_remote { get; }
+		public GLib.Variant platform_data { construct; }
 	}
 	[CCode (cheader_filename = "gio/gio.h")]
 	public class BufferedInputStream : GLib.FilterInputStream {
@@ -1010,6 +1041,22 @@ namespace GLib {
 		public uint8[] buffer;
 	}
 	[CCode (cheader_filename = "gio/gio.h")]
+	public class Periodic : GLib.Object {
+		[CCode (has_construct_function = false)]
+		public Periodic (uint hz, int priority);
+		public uint add (GLib.PeriodicTickFunc callback, GLib.DestroyNotify notify);
+		public void block ();
+		public void damaged (GLib.PeriodicRepairFunc callback, GLib.DestroyNotify notify);
+		public uint get_hz ();
+		public int get_priority ();
+		public void remove (uint tag);
+		public void unblock ();
+		public uint hz { get; construct; }
+		public int priority { get; construct; }
+		public virtual signal void repair ();
+		public virtual signal void tick (uint64 p0);
+	}
+	[CCode (cheader_filename = "gio/gio.h")]
 	public class Permission : GLib.Object {
 		[CCode (has_construct_function = false)]
 		protected Permission ();
@@ -1083,6 +1130,7 @@ namespace GLib {
 		public bool get_has_unapplied ();
 		public int get_int (string key);
 		public void* get_mapped (string key, GLib.SettingsGetMapping mapping);
+		public unowned GLib.Variant get_range (string key);
 		public unowned string get_string (string key);
 		[CCode (array_length = false, array_null_terminated = true)]
 		public string[] get_strv (string key);
@@ -1092,8 +1140,10 @@ namespace GLib {
 		public string[] list_children ();
 		[CCode (array_length = false, array_null_terminated = true)]
 		public string[] list_keys ();
+		public static unowned string list_relocatable_schemas ();
 		[CCode (array_length = false, array_null_terminated = true)]
 		public static unowned string[] list_schemas ();
+		public bool range_check (string key, GLib.Variant value);
 		public void reset (string key);
 		public void revert ();
 		[CCode (sentinel = "")]
@@ -1498,15 +1548,15 @@ namespace GLib {
 	}
 	[CCode (cheader_filename = "gio/gio.h")]
 	public interface ActionGroup : GLib.Object {
-		public abstract void activate (string action_name, GLib.Variant parameter);
-		public abstract bool get_enabled (string action_name);
-		public abstract unowned GLib.VariantType get_parameter_type (string action_name);
-		public abstract unowned GLib.Variant get_state (string action_name);
-		public abstract unowned GLib.Variant get_state_hint (string action_name);
-		public abstract unowned GLib.VariantType get_state_type (string action_name);
+		public abstract void activate_action (string action_name, GLib.Variant parameter);
+		public abstract void change_action_state (string action_name, GLib.Variant value);
+		public abstract bool get_action_enabled (string action_name);
+		public abstract unowned GLib.VariantType get_action_parameter_type (string action_name);
+		public abstract unowned GLib.Variant get_action_state (string action_name);
+		public abstract unowned GLib.Variant get_action_state_hint (string action_name);
+		public abstract unowned GLib.VariantType get_action_state_type (string action_name);
 		public abstract bool has_action (string action_name);
 		public abstract unowned string list_actions ();
-		public abstract void set_state (string action_name, GLib.Variant value);
 		[HasEmitter]
 		public signal void action_added (string action_name);
 		[HasEmitter]
@@ -1794,6 +1844,15 @@ namespace GLib {
 		SUPPORTS_URIS,
 		SUPPORTS_STARTUP_NOTIFICATION
 	}
+	[CCode (cprefix = "G_APPLICATION_", cheader_filename = "gio/gio.h")]
+	[Flags]
+	public enum ApplicationFlags {
+		FLAGS_NONE,
+		IS_SERVICE,
+		IS_LAUNCHER,
+		HANDLES_OPEN,
+		HANDLES_COMMAND_LINE
+	}
 	[CCode (cprefix = "G_ASK_PASSWORD_", cheader_filename = "gio/gio.h")]
 	[Flags]
 	public enum AskPasswordFlags {
@@ -2266,6 +2325,10 @@ namespace GLib {
 	public delegate bool FileReadMoreCallback (string file_contents, int64 file_size, void* callback_data);
 	[CCode (cheader_filename = "gio/gio.h")]
 	public delegate bool IOSchedulerJobFunc (GLib.IOSchedulerJob job, GLib.Cancellable cancellable);
+	[CCode (cheader_filename = "gio/gio.h")]
+	public delegate void PeriodicRepairFunc (GLib.Periodic periodic);
+	[CCode (cheader_filename = "gio/gio.h")]
+	public delegate void PeriodicTickFunc (GLib.Periodic periodic, uint64 timestamp);
 	[CCode (cheader_filename = "gio/gio.h", has_target = false)]
 	public delegate void* ReallocFunc (void* data, size_t size);
 	[CCode (cheader_filename = "gio/gio.h")]
diff --git a/vapi/gio-unix-2.0.vapi b/vapi/gio-unix-2.0.vapi
index 769c304..40155eb 100644
--- a/vapi/gio-unix-2.0.vapi
+++ b/vapi/gio-unix-2.0.vapi
@@ -128,16 +128,10 @@ namespace GLib {
 		[NoAccessorMethod]
 		public GLib.ByteArray path_as_array { owned get; construct; }
 	}
-	[CCode (cheader_filename = "gio/gunixmounts.h")]
-	public interface DesktopAppInfoLookup : GLib.Object {
-		public abstract unowned GLib.AppInfo get_default_for_uri_scheme (string uri_scheme);
-	}
 	[CCode (cheader_filename = "gio/gfiledescriptorbased.h")]
 	public interface FileDescriptorBased : GLib.Object {
 		public abstract int get_fd ();
 	}
-	[CCode (cheader_filename = "gio/gunixmounts.h")]
-	public const string DESKTOP_APP_INFO_LOOKUP_EXTENSION_POINT_NAME;
 	[CCode (cname = "g_unix_is_mount_path_system_internal", cheader_filename = "gio/gunixmounts.h")]
 	public static bool is_mount_path_system_internal (string mount_path);
 	[CCode (cname = "g_unix_mount_points_changed_since", cheader_filename = "gio/gunixmounts.h")]
diff --git a/vapi/packages/gio-2.0/gio-2.0.gi b/vapi/packages/gio-2.0/gio-2.0.gi
index 2bd8556..3059b2e 100644
--- a/vapi/packages/gio-2.0/gio-2.0.gi
+++ b/vapi/packages/gio-2.0/gio-2.0.gi
@@ -570,6 +570,21 @@
 				<parameter name="user_data" type="gpointer"/>
 			</parameters>
 		</callback>
+		<callback name="GPeriodicRepairFunc">
+			<return-type type="void"/>
+			<parameters>
+				<parameter name="periodic" type="GPeriodic*"/>
+				<parameter name="user_data" type="gpointer"/>
+			</parameters>
+		</callback>
+		<callback name="GPeriodicTickFunc">
+			<return-type type="void"/>
+			<parameters>
+				<parameter name="periodic" type="GPeriodic*"/>
+				<parameter name="timestamp" type="guint64"/>
+				<parameter name="user_data" type="gpointer"/>
+			</parameters>
+		</callback>
 		<callback name="GReallocFunc">
 			<return-type type="gpointer"/>
 			<parameters>
@@ -1347,6 +1362,13 @@
 			<member name="G_APP_INFO_CREATE_SUPPORTS_URIS" value="2"/>
 			<member name="G_APP_INFO_CREATE_SUPPORTS_STARTUP_NOTIFICATION" value="4"/>
 		</flags>
+		<flags name="GApplicationFlags" type-name="GApplicationFlags" get-type="g_application_flags_get_type">
+			<member name="G_APPLICATION_FLAGS_NONE" value="0"/>
+			<member name="G_APPLICATION_IS_SERVICE" value="1"/>
+			<member name="G_APPLICATION_IS_LAUNCHER" value="2"/>
+			<member name="G_APPLICATION_HANDLES_OPEN" value="4"/>
+			<member name="G_APPLICATION_HANDLES_COMMAND_LINE" value="8"/>
+		</flags>
 		<flags name="GAskPasswordFlags" type-name="GAskPasswordFlags" get-type="g_ask_password_flags_get_type">
 			<member name="G_ASK_PASSWORD_NEED_PASSWORD" value="1"/>
 			<member name="G_ASK_PASSWORD_NEED_USERNAME" value="2"/>
@@ -1514,155 +1536,269 @@
 		</object>
 		<object name="GApplication" parent="GObject" type-name="GApplication" get-type="g_application_get_type">
 			<implements>
-				<interface name="GInitable"/>
+				<interface name="GActionGroup"/>
 			</implements>
-			<method name="add_action" symbol="g_application_add_action">
+			<method name="activate" symbol="g_application_activate">
 				<return-type type="void"/>
 				<parameters>
 					<parameter name="application" type="GApplication*"/>
-					<parameter name="name" type="gchar*"/>
-					<parameter name="description" type="gchar*"/>
 				</parameters>
 			</method>
-			<method name="get_action_description" symbol="g_application_get_action_description">
+			<method name="get_application_id" symbol="g_application_get_application_id">
 				<return-type type="gchar*"/>
 				<parameters>
 					<parameter name="application" type="GApplication*"/>
-					<parameter name="name" type="gchar*"/>
 				</parameters>
 			</method>
-			<method name="get_action_enabled" symbol="g_application_get_action_enabled">
-				<return-type type="gboolean"/>
+			<method name="get_flags" symbol="g_application_get_flags">
+				<return-type type="GApplicationFlags"/>
 				<parameters>
 					<parameter name="application" type="GApplication*"/>
-					<parameter name="name" type="gchar*"/>
 				</parameters>
 			</method>
-			<method name="get_id" symbol="g_application_get_id">
-				<return-type type="gchar*"/>
+			<method name="get_inactivity_timeout" symbol="g_application_get_inactivity_timeout">
+				<return-type type="guint"/>
 				<parameters>
 					<parameter name="application" type="GApplication*"/>
 				</parameters>
 			</method>
-			<method name="get_instance" symbol="g_application_get_instance">
-				<return-type type="GApplication*"/>
-			</method>
-			<method name="invoke_action" symbol="g_application_invoke_action">
-				<return-type type="void"/>
+			<method name="get_is_registered" symbol="g_application_get_is_registered">
+				<return-type type="gboolean"/>
 				<parameters>
 					<parameter name="application" type="GApplication*"/>
-					<parameter name="name" type="gchar*"/>
-					<parameter name="platform_data" type="GVariant*"/>
 				</parameters>
 			</method>
-			<method name="is_remote" symbol="g_application_is_remote">
+			<method name="get_is_remote" symbol="g_application_get_is_remote">
 				<return-type type="gboolean"/>
 				<parameters>
 					<parameter name="application" type="GApplication*"/>
 				</parameters>
 			</method>
-			<method name="list_actions" symbol="g_application_list_actions">
-				<return-type type="gchar**"/>
+			<method name="hold" symbol="g_application_hold">
+				<return-type type="void"/>
 				<parameters>
 					<parameter name="application" type="GApplication*"/>
 				</parameters>
 			</method>
+			<method name="id_is_valid" symbol="g_application_id_is_valid">
+				<return-type type="gboolean"/>
+				<parameters>
+					<parameter name="application_id" type="gchar*"/>
+				</parameters>
+			</method>
 			<constructor name="new" symbol="g_application_new">
 				<return-type type="GApplication*"/>
 				<parameters>
-					<parameter name="appid" type="gchar*"/>
-					<parameter name="argc" type="int"/>
-					<parameter name="argv" type="char**"/>
+					<parameter name="application_id" type="gchar*"/>
+					<parameter name="flags" type="GApplicationFlags"/>
 				</parameters>
 			</constructor>
-			<method name="quit_with_data" symbol="g_application_quit_with_data">
-				<return-type type="gboolean"/>
+			<method name="open" symbol="g_application_open">
+				<return-type type="void"/>
 				<parameters>
 					<parameter name="application" type="GApplication*"/>
-					<parameter name="platform_data" type="GVariant*"/>
+					<parameter name="files" type="GFile**"/>
+					<parameter name="n_files" type="gint"/>
+					<parameter name="hint" type="gchar*"/>
 				</parameters>
 			</method>
 			<method name="register" symbol="g_application_register">
 				<return-type type="gboolean"/>
 				<parameters>
 					<parameter name="application" type="GApplication*"/>
+					<parameter name="cancellable" type="GCancellable*"/>
+					<parameter name="error" type="GError**"/>
 				</parameters>
 			</method>
-			<method name="remove_action" symbol="g_application_remove_action">
+			<method name="release" symbol="g_application_release">
 				<return-type type="void"/>
 				<parameters>
 					<parameter name="application" type="GApplication*"/>
-					<parameter name="name" type="gchar*"/>
 				</parameters>
 			</method>
 			<method name="run" symbol="g_application_run">
+				<return-type type="int"/>
+				<parameters>
+					<parameter name="application" type="GApplication*"/>
+					<parameter name="argc" type="int"/>
+					<parameter name="argv" type="char**"/>
+				</parameters>
+			</method>
+			<method name="set_action_group" symbol="g_application_set_action_group">
 				<return-type type="void"/>
 				<parameters>
 					<parameter name="application" type="GApplication*"/>
+					<parameter name="action_group" type="GActionGroup*"/>
 				</parameters>
 			</method>
-			<method name="set_action_enabled" symbol="g_application_set_action_enabled">
+			<method name="set_application_id" symbol="g_application_set_application_id">
 				<return-type type="void"/>
 				<parameters>
 					<parameter name="application" type="GApplication*"/>
-					<parameter name="name" type="gchar*"/>
-					<parameter name="enabled" type="gboolean"/>
+					<parameter name="application_id" type="gchar*"/>
 				</parameters>
 			</method>
-			<method name="try_new" symbol="g_application_try_new">
-				<return-type type="GApplication*"/>
+			<method name="set_flags" symbol="g_application_set_flags">
+				<return-type type="void"/>
 				<parameters>
-					<parameter name="appid" type="gchar*"/>
-					<parameter name="argc" type="int"/>
-					<parameter name="argv" type="char**"/>
-					<parameter name="error" type="GError**"/>
+					<parameter name="application" type="GApplication*"/>
+					<parameter name="flags" type="GApplicationFlags"/>
 				</parameters>
 			</method>
-			<method name="unregistered_try_new" symbol="g_application_unregistered_try_new">
-				<return-type type="GApplication*"/>
+			<method name="set_inactivity_timeout" symbol="g_application_set_inactivity_timeout">
+				<return-type type="void"/>
 				<parameters>
-					<parameter name="appid" type="gchar*"/>
-					<parameter name="argc" type="int"/>
-					<parameter name="argv" type="char**"/>
-					<parameter name="error" type="GError**"/>
+					<parameter name="application" type="GApplication*"/>
+					<parameter name="inactivity_timeout" type="guint"/>
 				</parameters>
 			</method>
-			<property name="application-id" type="char*" readable="1" writable="1" construct="0" construct-only="1"/>
-			<property name="argv" type="GVariant" readable="1" writable="1" construct="0" construct-only="1"/>
-			<property name="default-quit" type="gboolean" readable="1" writable="1" construct="0" construct-only="1"/>
+			<property name="action-group" type="GActionGroup*" readable="0" writable="1" construct="0" construct-only="0"/>
+			<property name="application-id" type="char*" readable="1" writable="1" construct="1" construct-only="0"/>
+			<property name="flags" type="GApplicationFlags" readable="1" writable="1" construct="0" construct-only="0"/>
+			<property name="inactivity-timeout" type="guint" readable="1" writable="1" construct="0" construct-only="0"/>
+			<property name="is-registered" type="gboolean" readable="1" writable="0" construct="0" construct-only="0"/>
 			<property name="is-remote" type="gboolean" readable="1" writable="0" construct="0" construct-only="0"/>
-			<property name="platform-data" type="GVariant" readable="1" writable="1" construct="0" construct-only="1"/>
-			<property name="register" type="gboolean" readable="1" writable="1" construct="0" construct-only="1"/>
-			<signal name="action-with-data" when="FIRST">
+			<signal name="activate" when="LAST">
 				<return-type type="void"/>
 				<parameters>
 					<parameter name="application" type="GApplication*"/>
-					<parameter name="action_name" type="char*"/>
-					<parameter name="platform_data" type="GVariant"/>
 				</parameters>
 			</signal>
-			<signal name="prepare-activation" when="LAST">
+			<signal name="command-line" when="LAST">
+				<return-type type="gint"/>
+				<parameters>
+					<parameter name="application" type="GApplication*"/>
+					<parameter name="command_line" type="GApplicationCommandLine*"/>
+				</parameters>
+			</signal>
+			<signal name="open" when="LAST">
 				<return-type type="void"/>
 				<parameters>
 					<parameter name="application" type="GApplication*"/>
-					<parameter name="arguments" type="GVariant"/>
-					<parameter name="platform_data" type="GVariant"/>
+					<parameter name="files" type="gpointer"/>
+					<parameter name="n_files" type="gint"/>
+					<parameter name="hint" type="char*"/>
 				</parameters>
 			</signal>
-			<signal name="quit-with-data" when="LAST">
-				<return-type type="gboolean"/>
+			<signal name="startup" when="LAST">
+				<return-type type="void"/>
 				<parameters>
 					<parameter name="application" type="GApplication*"/>
-					<parameter name="platform_data" type="GVariant"/>
 				</parameters>
 			</signal>
-			<vfunc name="run">
+			<vfunc name="add_platform_data">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="application" type="GApplication*"/>
+					<parameter name="builder" type="GVariantBuilder*"/>
+				</parameters>
+			</vfunc>
+			<vfunc name="after_emit">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="application" type="GApplication*"/>
+					<parameter name="platform_data" type="GVariant*"/>
+				</parameters>
+			</vfunc>
+			<vfunc name="before_emit">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="application" type="GApplication*"/>
+					<parameter name="platform_data" type="GVariant*"/>
+				</parameters>
+			</vfunc>
+			<vfunc name="local_command_line">
+				<return-type type="gboolean"/>
+				<parameters>
+					<parameter name="application" type="GApplication*"/>
+					<parameter name="arguments" type="gchar***"/>
+					<parameter name="exit_status" type="int*"/>
+				</parameters>
+			</vfunc>
+			<vfunc name="quit_mainloop">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="application" type="GApplication*"/>
+				</parameters>
+			</vfunc>
+			<vfunc name="run_mainloop">
 				<return-type type="void"/>
 				<parameters>
 					<parameter name="application" type="GApplication*"/>
 				</parameters>
 			</vfunc>
 		</object>
+		<object name="GApplicationCommandLine" parent="GObject" type-name="GApplicationCommandLine" get-type="g_application_command_line_get_type">
+			<method name="get_arguments" symbol="g_application_command_line_get_arguments">
+				<return-type type="gchar**"/>
+				<parameters>
+					<parameter name="cmdline" type="GApplicationCommandLine*"/>
+					<parameter name="argc" type="int*"/>
+				</parameters>
+			</method>
+			<method name="get_cwd" symbol="g_application_command_line_get_cwd">
+				<return-type type="gchar*"/>
+				<parameters>
+					<parameter name="cmdline" type="GApplicationCommandLine*"/>
+				</parameters>
+			</method>
+			<method name="get_exit_status" symbol="g_application_command_line_get_exit_status">
+				<return-type type="int"/>
+				<parameters>
+					<parameter name="cmdline" type="GApplicationCommandLine*"/>
+				</parameters>
+			</method>
+			<method name="get_is_remote" symbol="g_application_command_line_get_is_remote">
+				<return-type type="gboolean"/>
+				<parameters>
+					<parameter name="cmdline" type="GApplicationCommandLine*"/>
+				</parameters>
+			</method>
+			<method name="get_platform_data" symbol="g_application_command_line_get_platform_data">
+				<return-type type="GVariant*"/>
+				<parameters>
+					<parameter name="cmdline" type="GApplicationCommandLine*"/>
+				</parameters>
+			</method>
+			<method name="print" symbol="g_application_command_line_print">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="cmdline" type="GApplicationCommandLine*"/>
+					<parameter name="format" type="gchar*"/>
+				</parameters>
+			</method>
+			<method name="printerr" symbol="g_application_command_line_printerr">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="cmdline" type="GApplicationCommandLine*"/>
+					<parameter name="format" type="gchar*"/>
+				</parameters>
+			</method>
+			<method name="set_exit_status" symbol="g_application_command_line_set_exit_status">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="cmdline" type="GApplicationCommandLine*"/>
+					<parameter name="exit_status" type="int"/>
+				</parameters>
+			</method>
+			<property name="arguments" type="GVariant" readable="0" writable="1" construct="0" construct-only="1"/>
+			<property name="is-remote" type="gboolean" readable="1" writable="0" construct="0" construct-only="0"/>
+			<property name="platform-data" type="GVariant" readable="0" writable="1" construct="0" construct-only="1"/>
+			<vfunc name="print_literal">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="cmdline" type="GApplicationCommandLine*"/>
+					<parameter name="message" type="gchar*"/>
+				</parameters>
+			</vfunc>
+			<vfunc name="printerr_literal">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="cmdline" type="GApplicationCommandLine*"/>
+					<parameter name="message" type="gchar*"/>
+				</parameters>
+			</vfunc>
+		</object>
 		<object name="GBufferedInputStream" parent="GFilterInputStream" type-name="GBufferedInputStream" get-type="g_buffered_input_stream_get_type">
 			<method name="fill" symbol="g_buffered_input_stream_fill">
 				<return-type type="gssize"/>
@@ -5559,6 +5695,79 @@
 				</parameters>
 			</vfunc>
 		</object>
+		<object name="GPeriodic" parent="GObject" type-name="GPeriodic" get-type="g_periodic_get_type">
+			<method name="add" symbol="g_periodic_add">
+				<return-type type="guint"/>
+				<parameters>
+					<parameter name="periodic" type="GPeriodic*"/>
+					<parameter name="callback" type="GPeriodicTickFunc"/>
+					<parameter name="user_data" type="gpointer"/>
+					<parameter name="notify" type="GDestroyNotify"/>
+				</parameters>
+			</method>
+			<method name="block" symbol="g_periodic_block">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="periodic" type="GPeriodic*"/>
+				</parameters>
+			</method>
+			<method name="damaged" symbol="g_periodic_damaged">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="periodic" type="GPeriodic*"/>
+					<parameter name="callback" type="GPeriodicRepairFunc"/>
+					<parameter name="user_data" type="gpointer"/>
+					<parameter name="notify" type="GDestroyNotify"/>
+				</parameters>
+			</method>
+			<method name="get_hz" symbol="g_periodic_get_hz">
+				<return-type type="guint"/>
+				<parameters>
+					<parameter name="periodic" type="GPeriodic*"/>
+				</parameters>
+			</method>
+			<method name="get_priority" symbol="g_periodic_get_priority">
+				<return-type type="gint"/>
+				<parameters>
+					<parameter name="periodic" type="GPeriodic*"/>
+				</parameters>
+			</method>
+			<constructor name="new" symbol="g_periodic_new">
+				<return-type type="GPeriodic*"/>
+				<parameters>
+					<parameter name="hz" type="guint"/>
+					<parameter name="priority" type="gint"/>
+				</parameters>
+			</constructor>
+			<method name="remove" symbol="g_periodic_remove">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="periodic" type="GPeriodic*"/>
+					<parameter name="tag" type="guint"/>
+				</parameters>
+			</method>
+			<method name="unblock" symbol="g_periodic_unblock">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="periodic" type="GPeriodic*"/>
+				</parameters>
+			</method>
+			<property name="hz" type="guint" readable="1" writable="1" construct="0" construct-only="1"/>
+			<property name="priority" type="gint" readable="1" writable="1" construct="0" construct-only="1"/>
+			<signal name="repair" when="LAST">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="object" type="GPeriodic*"/>
+				</parameters>
+			</signal>
+			<signal name="tick" when="LAST">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="object" type="GPeriodic*"/>
+					<parameter name="p0" type="guint64"/>
+				</parameters>
+			</signal>
+		</object>
 		<object name="GPermission" parent="GObject" type-name="GPermission" get-type="g_permission_get_type">
 			<method name="acquire" symbol="g_permission_acquire">
 				<return-type type="gboolean"/>
@@ -6057,6 +6266,13 @@
 					<parameter name="user_data" type="gpointer"/>
 				</parameters>
 			</method>
+			<method name="get_range" symbol="g_settings_get_range">
+				<return-type type="GVariant*"/>
+				<parameters>
+					<parameter name="settings" type="GSettings*"/>
+					<parameter name="key" type="gchar*"/>
+				</parameters>
+			</method>
 			<method name="get_string" symbol="g_settings_get_string">
 				<return-type type="gchar*"/>
 				<parameters>
@@ -6097,6 +6313,9 @@
 					<parameter name="settings" type="GSettings*"/>
 				</parameters>
 			</method>
+			<method name="list_relocatable_schemas" symbol="g_settings_list_relocatable_schemas">
+				<return-type type="gchar**"/>
+			</method>
 			<method name="list_schemas" symbol="g_settings_list_schemas">
 				<return-type type="gchar**"/>
 			</method>
@@ -6128,6 +6347,14 @@
 					<parameter name="path" type="gchar*"/>
 				</parameters>
 			</constructor>
+			<method name="range_check" symbol="g_settings_range_check">
+				<return-type type="gboolean"/>
+				<parameters>
+					<parameter name="settings" type="GSettings*"/>
+					<parameter name="key" type="gchar*"/>
+					<parameter name="value" type="GVariant*"/>
+				</parameters>
+			</method>
 			<method name="reset" symbol="g_settings_reset">
 				<return-type type="void"/>
 				<parameters>
@@ -7903,7 +8130,7 @@
 				<return-type type="void"/>
 				<parameters>
 					<parameter name="action" type="GAction*"/>
-					<parameter name="state" type="GVariant*"/>
+					<parameter name="value" type="GVariant*"/>
 				</parameters>
 			</vfunc>
 		</interface>
@@ -7941,7 +8168,7 @@
 					<parameter name="state" type="GVariant*"/>
 				</parameters>
 			</method>
-			<method name="activate" symbol="g_action_group_activate">
+			<method name="activate_action" symbol="g_action_group_activate_action">
 				<return-type type="void"/>
 				<parameters>
 					<parameter name="action_group" type="GActionGroup*"/>
@@ -7949,35 +8176,43 @@
 					<parameter name="parameter" type="GVariant*"/>
 				</parameters>
 			</method>
-			<method name="get_enabled" symbol="g_action_group_get_enabled">
+			<method name="change_action_state" symbol="g_action_group_change_action_state">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="action_group" type="GActionGroup*"/>
+					<parameter name="action_name" type="gchar*"/>
+					<parameter name="value" type="GVariant*"/>
+				</parameters>
+			</method>
+			<method name="get_action_enabled" symbol="g_action_group_get_action_enabled">
 				<return-type type="gboolean"/>
 				<parameters>
 					<parameter name="action_group" type="GActionGroup*"/>
 					<parameter name="action_name" type="gchar*"/>
 				</parameters>
 			</method>
-			<method name="get_parameter_type" symbol="g_action_group_get_parameter_type">
+			<method name="get_action_parameter_type" symbol="g_action_group_get_action_parameter_type">
 				<return-type type="GVariantType*"/>
 				<parameters>
 					<parameter name="action_group" type="GActionGroup*"/>
 					<parameter name="action_name" type="gchar*"/>
 				</parameters>
 			</method>
-			<method name="get_state" symbol="g_action_group_get_state">
+			<method name="get_action_state" symbol="g_action_group_get_action_state">
 				<return-type type="GVariant*"/>
 				<parameters>
 					<parameter name="action_group" type="GActionGroup*"/>
 					<parameter name="action_name" type="gchar*"/>
 				</parameters>
 			</method>
-			<method name="get_state_hint" symbol="g_action_group_get_state_hint">
+			<method name="get_action_state_hint" symbol="g_action_group_get_action_state_hint">
 				<return-type type="GVariant*"/>
 				<parameters>
 					<parameter name="action_group" type="GActionGroup*"/>
 					<parameter name="action_name" type="gchar*"/>
 				</parameters>
 			</method>
-			<method name="get_state_type" symbol="g_action_group_get_state_type">
+			<method name="get_action_state_type" symbol="g_action_group_get_action_state_type">
 				<return-type type="GVariantType*"/>
 				<parameters>
 					<parameter name="action_group" type="GActionGroup*"/>
@@ -7997,14 +8232,6 @@
 					<parameter name="action_group" type="GActionGroup*"/>
 				</parameters>
 			</method>
-			<method name="set_state" symbol="g_action_group_set_state">
-				<return-type type="void"/>
-				<parameters>
-					<parameter name="action_group" type="GActionGroup*"/>
-					<parameter name="action_name" type="gchar*"/>
-					<parameter name="value" type="GVariant*"/>
-				</parameters>
-			</method>
 			<signal name="action-added" when="LAST">
 				<return-type type="void"/>
 				<parameters>
@@ -8035,7 +8262,7 @@
 					<parameter name="value" type="GVariant"/>
 				</parameters>
 			</signal>
-			<vfunc name="activate">
+			<vfunc name="activate_action">
 				<return-type type="void"/>
 				<parameters>
 					<parameter name="action_group" type="GActionGroup*"/>
@@ -8043,35 +8270,43 @@
 					<parameter name="parameter" type="GVariant*"/>
 				</parameters>
 			</vfunc>
-			<vfunc name="get_enabled">
+			<vfunc name="change_action_state">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="action_group" type="GActionGroup*"/>
+					<parameter name="action_name" type="gchar*"/>
+					<parameter name="value" type="GVariant*"/>
+				</parameters>
+			</vfunc>
+			<vfunc name="get_action_enabled">
 				<return-type type="gboolean"/>
 				<parameters>
 					<parameter name="action_group" type="GActionGroup*"/>
 					<parameter name="action_name" type="gchar*"/>
 				</parameters>
 			</vfunc>
-			<vfunc name="get_parameter_type">
+			<vfunc name="get_action_parameter_type">
 				<return-type type="GVariantType*"/>
 				<parameters>
 					<parameter name="action_group" type="GActionGroup*"/>
 					<parameter name="action_name" type="gchar*"/>
 				</parameters>
 			</vfunc>
-			<vfunc name="get_state">
+			<vfunc name="get_action_state">
 				<return-type type="GVariant*"/>
 				<parameters>
 					<parameter name="action_group" type="GActionGroup*"/>
 					<parameter name="action_name" type="gchar*"/>
 				</parameters>
 			</vfunc>
-			<vfunc name="get_state_hint">
+			<vfunc name="get_action_state_hint">
 				<return-type type="GVariant*"/>
 				<parameters>
 					<parameter name="action_group" type="GActionGroup*"/>
 					<parameter name="action_name" type="gchar*"/>
 				</parameters>
 			</vfunc>
-			<vfunc name="get_state_type">
+			<vfunc name="get_action_state_type">
 				<return-type type="GVariantType*"/>
 				<parameters>
 					<parameter name="action_group" type="GActionGroup*"/>
@@ -8091,14 +8326,6 @@
 					<parameter name="action_group" type="GActionGroup*"/>
 				</parameters>
 			</vfunc>
-			<vfunc name="set_state">
-				<return-type type="void"/>
-				<parameters>
-					<parameter name="action_group" type="GActionGroup*"/>
-					<parameter name="action_name" type="gchar*"/>
-					<parameter name="value" type="GVariant*"/>
-				</parameters>
-			</vfunc>
 		</interface>
 		<interface name="GAppInfo" type-name="GAppInfo" get-type="g_app_info_get_type">
 			<requires>
diff --git a/vapi/packages/gio-2.0/gio-2.0.metadata b/vapi/packages/gio-2.0/gio-2.0.metadata
index 7a0eb78..09f437b 100644
--- a/vapi/packages/gio-2.0/gio-2.0.metadata
+++ b/vapi/packages/gio-2.0/gio-2.0.metadata
@@ -217,12 +217,19 @@ g_memory_output_stream_*.destroy_function nullable="1"
 g_*_stream_close error_types="IOError"
 g_*_stream_close_finish error_types="IOError"
 
-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_run.argc hidden="1"
+g_application_run.argv is_array="1" array_length_pos="1.9" nullable="1" default_value="null"
 g_application_is_remote hidden="1"
+GApplication::activate has_emitter="1"
+GApplication::open has_emitter="1"
+GApplication::open.files type_name="File" is_array="1"
+GApplication::open.n_files hidden="1"
 GApplication::quit_with_data has_emitter="1"
 GApplication::quit_with_data.platform_data nullable="1" default_value="null"
 GApplication:register hidden="1"
+g_application_command_line_get_arguments is_array="1" transfer_ownership="1"
+g_application_command_line_get_arguments.argc hidden="1"
+g_application_command_line_get_platform_data nullable="1" transfer_ownership="1"
 GActionGroup::action_added has_emitter="1"
 GActionGroup::action_removed has_emitter="1"
 GActionGroup::action_enabled_changed has_emitter="1"
diff --git a/vapi/packages/gio-unix-2.0/gio-unix-2.0.gi b/vapi/packages/gio-unix-2.0/gio-unix-2.0.gi
index 0dce1a1..e499245 100644
--- a/vapi/packages/gio-unix-2.0/gio-unix-2.0.gi
+++ b/vapi/packages/gio-unix-2.0/gio-unix-2.0.gi
@@ -497,25 +497,6 @@
 			<property name="path" type="char*" readable="1" writable="1" construct="0" construct-only="1"/>
 			<property name="path-as-array" type="GByteArray*" readable="1" writable="1" construct="0" construct-only="1"/>
 		</object>
-		<interface name="GDesktopAppInfoLookup" type-name="GDesktopAppInfoLookup" get-type="g_desktop_app_info_lookup_get_type">
-			<requires>
-				<interface name="GObject"/>
-			</requires>
-			<method name="get_default_for_uri_scheme" symbol="g_desktop_app_info_lookup_get_default_for_uri_scheme">
-				<return-type type="GAppInfo*"/>
-				<parameters>
-					<parameter name="lookup" type="GDesktopAppInfoLookup*"/>
-					<parameter name="uri_scheme" type="char*"/>
-				</parameters>
-			</method>
-			<vfunc name="get_default_for_uri_scheme">
-				<return-type type="GAppInfo*"/>
-				<parameters>
-					<parameter name="lookup" type="GDesktopAppInfoLookup*"/>
-					<parameter name="uri_scheme" type="char*"/>
-				</parameters>
-			</vfunc>
-		</interface>
 		<interface name="GFileDescriptorBased" type-name="GFileDescriptorBased" get-type="g_file_descriptor_based_get_type">
 			<requires>
 				<interface name="GObject"/>
@@ -533,6 +514,5 @@
 				</parameters>
 			</vfunc>
 		</interface>
-		<constant name="G_DESKTOP_APP_INFO_LOOKUP_EXTENSION_POINT_NAME" type="char*" value="gio-desktop-app-info-lookup"/>
 	</namespace>
 </api>



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