From: Ryan Lortie Date: Wed, 2 Sep 2009 02:44:37 +0000 (-0400) Subject: add initial GSettings support to gio-2.0 vapi X-Git-Tag: 0.7.6~154 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eeb54099faaf94e8ef28e53ebfa3a495e095d6c4;p=thirdparty%2Fvala.git add initial GSettings support to gio-2.0 vapi --- diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi index 02e7f75b5..0a7049187 100644 --- a/vapi/gio-2.0.vapi +++ b/vapi/gio-2.0.vapi @@ -577,6 +577,65 @@ namespace GLib { public void set_default (); } [CCode (cheader_filename = "gio/gio.h")] + public class Settings : GLib.Object { + [CCode (has_construct_function = false)] + public Settings (string schema); + public void apply (); + public void destroy (); + [CCode (has_construct_function = false)] + public Settings.from_path (string path); + public void @get (...); + public bool get_delay_apply (); + public bool get_has_unapplied (); + public GLib.SettingsList get_list (string name); + public bool get_locked (); + public virtual GLib.Settings get_settings (string name); + public GLib.variant get_value (string key); + public bool is_writable (string name); + public void @lock (); + public void revert (); + public void @set (...); + public void set_delay_apply (bool delay_apply); + public void set_value (string key, GLib.variant value); + [NoAccessorMethod] + public GLib.SettingsBackend backend { owned get; construct; } + [NoAccessorMethod] + public string base_path { owned get; construct; } + public bool delay_apply { get; construct; } + public bool has_unapplied { get; } + [NoAccessorMethod] + public GLib.Object schema { owned get; construct; } + [NoAccessorMethod] + public string schema_name { owned get; construct; } + public virtual signal void changed (string key); + [HasEmitter] + public virtual signal void changes (void* keys, int n_keys); + public virtual signal void destroyed (); + } + [CCode (cheader_filename = "gio/gio.h")] + public class SettingsBackend : GLib.Object { + public void changed_tree (string prefix, GLib.Tree tree, void* origin_tag); + public static unowned GLib.SettingsBackend get_default (); + public virtual bool get_writable (string name); + public virtual GLib.variant read (string key, GLib.VariantType expected_type); + public void set_default (); + public virtual void subscribe (string name); + [CCode (type = "GTree*", has_construct_function = false)] + public SettingsBackend.tree (); + public virtual void unsubscribe (string name); + public virtual void write (string prefix, GLib.Tree values, void* origin_tag); + [HasEmitter] + public virtual signal void changed (string prefix, string[] names, int names_len, void* origin_tag); + } + [CCode (cheader_filename = "gio/gio.h")] + public class SettingsList : GLib.Settings { + public string add (string prefix, int before); + public GLib.Settings @get (string id); + public string[] list (); + public bool move_item (string id, int new_index); + public void remove (string id); + } + [CCode (cheader_filename = "gio/gio.h")] public class SimpleAsyncResult : GLib.Object, GLib.AsyncResult { public void complete (); public void complete_in_idle (); diff --git a/vapi/packages/gio-2.0/gio-2.0.gi b/vapi/packages/gio-2.0/gio-2.0.gi index 0e80d815b..185abf63d 100644 --- a/vapi/packages/gio-2.0/gio-2.0.gi +++ b/vapi/packages/gio-2.0/gio-2.0.gi @@ -3457,6 +3457,319 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -8325,6 +8638,7 @@ + diff --git a/vapi/packages/gio-2.0/gio-2.0.metadata b/vapi/packages/gio-2.0/gio-2.0.metadata index 08863c3f6..ad73bd4ee 100644 --- a/vapi/packages/gio-2.0/gio-2.0.metadata +++ b/vapi/packages/gio-2.0/gio-2.0.metadata @@ -107,3 +107,14 @@ g_loadable_icon_load.type nullable="1" g_loadable_icon_load_finish.type nullable="1" g_srv_target_copy transfer_ownership="1" + +GSettings::changes has_emitter="1" +GSettingsBackend::changed has_emitter="1" +g_settings_get_list transfer_ownership="1" +g_settings_get_settings transfer_ownership="1" +g_settings_get_value transfer_ownership="1" +g_settings_backend_read transfer_ownership="1" +g_settings_list_add transfer_ownership="1" +g_settings_list_get transfer_ownership="1" +g_settings_list_list is_array="1" transfer_ownership="1" array_length_pos="1" +g_settings_list_list.n_items hidden="1"