diff options
author | James Henstridge <james@daa.com.au> | 2001-08-18 03:07:48 +0000 |
---|---|---|
committer | James Henstridge <jamesh@src.gnome.org> | 2001-08-18 03:07:48 +0000 |
commit | f240813ff68977d7ce7c775ffc9d632c16c867ec (patch) | |
tree | a5703bcc102604c097d57c9273e68408d81519a9 /gobject/gobject.h | |
parent | 2da4b710cd773ed54a57f89b382fa0c37771d0ce (diff) | |
download | glib-f240813ff68977d7ce7c775ffc9d632c16c867ec.tar.gz |
add an object member to the structure. (weak_refs_notify): pass
2001-08-17 James Henstridge <james@daa.com.au>
* gobject.c (WeakRefStack): add an object member to the structure.
(weak_refs_notify): pass wstack->object as extra argument to
notify functions.
(g_object_weak_ref): set wstack->object when initialising
WeakRefStack.
* gobject.h (GWeakNotify): add second argument to prototype which
gives the pointer to where the object that is being disposed of
was.
Diffstat (limited to 'gobject/gobject.h')
-rw-r--r-- | gobject/gobject.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gobject/gobject.h b/gobject/gobject.h index 582f81cf6..0b4dbc90c 100644 --- a/gobject/gobject.h +++ b/gobject/gobject.h @@ -54,7 +54,8 @@ typedef void (*GObjectSetPropertyFunc) (GObject *object, const GValue *value, GParamSpec *pspec); typedef void (*GObjectFinalizeFunc) (GObject *object); -typedef void (*GWeakNotify) (gpointer data); +typedef void (*GWeakNotify) (gpointer data, + GObject *where_the_object_was); struct _GObject { GTypeInstance g_type_instance; |