[vala/0.12] gio-2.0: GSettingsBindSetMapping returns owned



commit ef34bd061a577c811a3a68926fce10150e83426a
Author: Ryan Lortie <desrt desrt ca>
Date:   Sun Apr 17 16:19:34 2011 -0400

    gio-2.0: GSettingsBindSetMapping returns owned
    
    The old binding says it returns an 'unowned GLib.Variant', which is a
    pretty difficult proposition for a mapping function...

 vapi/gio-2.0.vapi                      |    2 +-
 vapi/packages/gio-2.0/gio-2.0.metadata |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index d80fab6..3ca8ce7 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -2504,7 +2504,7 @@ namespace GLib {
 	[CCode (cheader_filename = "gio/gio.h")]
 	public delegate bool SettingsBindGetMapping (GLib.Value value, GLib.Variant variant);
 	[CCode (cheader_filename = "gio/gio.h")]
-	public delegate unowned GLib.Variant SettingsBindSetMapping (GLib.Value value, GLib.VariantType expected_type);
+	public delegate GLib.Variant SettingsBindSetMapping (GLib.Value value, GLib.VariantType expected_type);
 	[CCode (cheader_filename = "gio/gio.h")]
 	public delegate bool SettingsGetMapping (GLib.Variant value, void* result);
 	[CCode (cheader_filename = "gio/gio.h", has_target = false)]
diff --git a/vapi/packages/gio-2.0/gio-2.0.metadata b/vapi/packages/gio-2.0/gio-2.0.metadata
index 95ba8d0..3683542 100644
--- a/vapi/packages/gio-2.0/gio-2.0.metadata
+++ b/vapi/packages/gio-2.0/gio-2.0.metadata
@@ -357,6 +357,7 @@ g_settings_list_keys is_array="1" no_array_length="1" array_null_terminated="1"
 g_settings_list_schemas is_array="1" no_array_length="1" array_null_terminated="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"
+GSettingsBindSetMapping transfer_ownership="1"
 
 g_simple_async_result_new.source_object nullable="1"
 g_simple_async_result_new_take_error hidden="1"



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