[vala] gobject-2.0: Use instance_pos=0 in WeakNotify delegate.
- From: Evan Nemerson <evann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] gobject-2.0: Use instance_pos=0 in WeakNotify delegate.
- Date: Thu, 25 Feb 2010 07:55:14 +0000 (UTC)
commit 2e868addc433631ecc3c784e252710fd86913cd4
Author: Luca Bruno <lethalman88 gmail com>
Date: Sat Feb 13 16:17:28 2010 +0100
gobject-2.0: Use instance_pos=0 in WeakNotify delegate.
Fixes bug 609834.
vapi/gobject-2.0.vapi | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/vapi/gobject-2.0.vapi b/vapi/gobject-2.0.vapi
index b4f2ceb..8203573 100644
--- a/vapi/gobject-2.0.vapi
+++ b/vapi/gobject-2.0.vapi
@@ -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, ...);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]