]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gobject-2.0: Use instance_pos=0 in WeakNotify delegate.
authorLuca Bruno <lethalman88@gmail.com>
Sat, 13 Feb 2010 15:17:28 +0000 (16:17 +0100)
committerEvan Nemerson <evan@coeus-group.com>
Thu, 25 Feb 2010 07:44:49 +0000 (23:44 -0800)
Fixes bug 609834.

vapi/gobject-2.0.vapi

index b4f2ceb7e072cdcec6b86b42b80607f0d7c9007c..820357347d009f3440fbdc002fd51ddcb8fcd0f0 100644 (file)
@@ -285,8 +285,8 @@ namespace GLib {
        public delegate void ObjectGetPropertyFunc (Object object, uint property_id, Value value, ParamSpec pspec);
        [CCode (has_target = false)]
        public delegate void ObjectSetPropertyFunc (Object object, uint property_id, Value value, ParamSpec pspec);
-       [CCode (has_target = false)]
-       public delegate void WeakNotify (void *data, Object object);
+       [CCode (instance_pos = 0)]
+       public delegate void WeakNotify (Object object);
 
        [CCode (ref_function = "g_object_ref", unref_function = "g_object_unref", marshaller_type_name = "OBJECT", get_value_function = "g_value_get_object", set_value_function = "g_value_set_object", param_spec_function = "g_param_spec_object", cheader_filename = "glib-object.h")]
        public class Object {
@@ -307,8 +307,8 @@ namespace GLib {
                public weak Object @ref ();
                public void unref ();
                public Object ref_sink ();
-               public void weak_ref (WeakNotify notify, void *data);
-               public void weak_unref (WeakNotify notify, void *data);
+               public void weak_ref (WeakNotify notify);
+               public void weak_unref (WeakNotify notify);
                public void add_weak_pointer (void **data);
                public void remove_weak_pointer (void **data);
                public void get (string first_property_name, ...);