[vala] gconf-2.0: gconf_client_get_without_default transfers ownership



commit c4cc060800e29ecaceccf112ff4358d1daa22ab2
Author: Víctor Manuel Jáquez Leal <vjaquez igalia com>
Date:   Sun Mar 29 16:19:57 2009 +0200

    gconf-2.0: gconf_client_get_without_default transfers ownership
    
    Fixes bug 575535.
---
 vapi/gconf-2.0.vapi                        |    4 ++--
 vapi/packages/gconf-2.0/gconf-2.0.metadata |    1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/vapi/gconf-2.0.vapi b/vapi/gconf-2.0.vapi
index 43fa1ed..de8f9f9 100644
--- a/vapi/gconf-2.0.vapi
+++ b/vapi/gconf-2.0.vapi
@@ -3,7 +3,7 @@
 [CCode (cprefix = "GConf", lower_case_cprefix = "gconf_")]
 namespace GConf {
 	[Compact]
-	[CCode (ref_function = "gconf_change_set_ref", ref_function_void = true, unref_function = "gconf_change_set_unref", cheader_filename = "gconf/gconf.h")]
+	[CCode (ref_function = "gconf_change_set_ref", ref_function_void = true, unref_function = "gconf_change_set_unref", type_id = "GCONF_TYPE_CHANGE_SET", cheader_filename = "gconf/gconf.h")]
 	public class ChangeSet {
 		public bool check_value (string key, out unowned GConf.Value value_retloc);
 		public void clear ();
@@ -57,7 +57,7 @@ namespace GConf {
 		public bool get_pair (string key, GConf.ValueType car_type, GConf.ValueType cdr_type, void* car_retloc, void* cdr_retloc) throws GLib.Error;
 		public unowned GConf.Schema get_schema (string key) throws GLib.Error;
 		public unowned string get_string (string key) throws GLib.Error;
-		public unowned GConf.Value get_without_default (string key) throws GLib.Error;
+		public GConf.Value get_without_default (string key) throws GLib.Error;
 		public bool key_is_writable (string key) throws GLib.Error;
 		public void notify (string key);
 		public uint notify_add (string namespace_section, owned GConf.ClientNotifyFunc func) throws GLib.Error;
diff --git a/vapi/packages/gconf-2.0/gconf-2.0.metadata b/vapi/packages/gconf-2.0/gconf-2.0.metadata
index fdc56f0..a6788bb 100644
--- a/vapi/packages/gconf-2.0/gconf-2.0.metadata
+++ b/vapi/packages/gconf-2.0/gconf-2.0.metadata
@@ -6,6 +6,7 @@ GConfClient::value_changed has_emitter="1"
 GConfClient::error has_emitter="1"
 gconf_client_notify_add.func transfer_ownership="1"
 gconf_client_notify_add.destroy_notify hidden="1"
+gconf_client_get_without_default transfer_ownership="1"
 # deprecated and useless
 gconf_init hidden="1"
 gconf_meta_info_mod_time name="get_mod_time"



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