From c4cc060800e29ecaceccf112ff4358d1daa22ab2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Sun, 29 Mar 2009 16:19:57 +0200 Subject: [PATCH] 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 43fa1ed35..de8f9f97b 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 fdc56f0e6..a6788bb9f 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" -- 2.47.2