]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gconf-2.0: gconf_client_get_without_default transfers ownership
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Sun, 29 Mar 2009 14:19:57 +0000 (16:19 +0200)
committerJürg Billeter <j@bitron.ch>
Sun, 29 Mar 2009 14:19:57 +0000 (16:19 +0200)
Fixes bug 575535.

vapi/gconf-2.0.vapi
vapi/packages/gconf-2.0/gconf-2.0.metadata

index 43fa1ed3518da779c80de92c893787bbc42b4195..de8f9f97b19393d4ff76890b6b580f53e1d6f998 100644 (file)
@@ -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;
index fdc56f0e61a5e638e85b03c2dd7a4c808d669225..a6788bb9f25a6b6268bae213c4cd4c3a861ff226 100644 (file)
@@ -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"