[vala] gio-2.0: Make g_settings_{get,set}_strv use arrays.
- From: Evan Nemerson <evann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] gio-2.0: Make g_settings_{get,set}_strv use arrays.
- Date: Fri, 30 Jul 2010 23:04:40 +0000 (UTC)
commit 96dd84d13476fdcbcc3569dea16b6fc55dba4e1b
Author: Evan Nemerson <evan coeus-group com>
Date: Fri Jul 30 16:03:00 2010 -0700
gio-2.0: Make g_settings_{get,set}_strv use arrays.
Fixes bug 625689.
vapi/gio-2.0.vapi | 5 +++--
vapi/packages/gio-2.0/gio-2.0.metadata | 2 ++
2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index 114a84c..2ed05c8 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -980,7 +980,8 @@ namespace GLib {
public int get_int (string key);
public void* get_mapped (string key, GLib.SettingsGetMapping mapping);
public unowned string get_string (string key);
- public unowned string get_strv (string key);
+ [CCode (array_length = false, array_null_terminated = true)]
+ public string[] get_strv (string key);
public GLib.Variant get_value (string key);
public bool is_writable (string name);
public unowned string list_items ();
@@ -994,7 +995,7 @@ namespace GLib {
public bool set_flags (string key, uint value);
public bool set_int (string key, int value);
public bool set_string (string key, string value);
- public bool set_strv (string key, string value);
+ public bool set_strv (string key, [CCode (array_length = false)] string[] value);
public bool set_value (string key, GLib.Variant value);
public static void sync ();
public static void unbind (void* object, string property);
diff --git a/vapi/packages/gio-2.0/gio-2.0.metadata b/vapi/packages/gio-2.0/gio-2.0.metadata
index c4d71da..c58e902 100644
--- a/vapi/packages/gio-2.0/gio-2.0.metadata
+++ b/vapi/packages/gio-2.0/gio-2.0.metadata
@@ -208,6 +208,8 @@ 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"
+g_settings_get_strv is_array="1" no_array_length="1" array_null_terminated="1" transfer_ownership="1"
+g_settings_set_strv.value is_array="1" no_array_length="1"
g_simple_async_result_new.source_object nullable="1"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]