]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gobject-2.0: Fix ValueTransform and BindingTransformFunc
authorTimo Kluck <tkluck@infty.nl>
Sun, 11 Dec 2011 20:39:37 +0000 (21:39 +0100)
committerLuca Bruno <lucabru@src.gnome.org>
Thu, 22 Dec 2011 11:32:57 +0000 (12:32 +0100)
The destination GValue is already being initialized by the caller.

Fixes bug 665966.

vapi/gobject-2.0.vapi

index 38f5638718616b5c20e29cef701f993c7ec1a658..cbbb3518fd0314b240ed380c33fa35ca5d9755aa 100644 (file)
@@ -298,7 +298,7 @@ namespace GLib {
                INVERT_BOOLEAN
        }
 
-       public delegate bool BindingTransformFunc (GLib.Binding binding, GLib.Value source_value, GLib.Value target_value);
+       public delegate bool BindingTransformFunc (GLib.Binding binding, GLib.Value source_value, ref GLib.Value target_value);
 
        public class Binding : GLib.Object {
                public weak GLib.Object source { get; }
@@ -428,7 +428,7 @@ namespace GLib {
        }
 
        [CCode (has_target = false)]
-       public delegate void ValueTransform (Value src_value, out Value dest_value);
+       public delegate void ValueTransform (Value src_value, ref Value dest_value);
 
        [CCode (copy_function = "g_value_copy", destroy_function = "g_value_unset", type_id = "G_TYPE_VALUE", marshaller_type_name = "BOXED", get_value_function = "g_value_get_boxed", set_value_function = "g_value_set_boxed", take_value_function = "g_value_take_boxed", type_signature = "v")]
        public struct Value {