summaryrefslogtreecommitdiff
path: root/gtk/gtkobject.h
diff options
context:
space:
mode:
authorOwen Taylor <owt1@cornell.edu>1998-02-13 05:11:16 +0000
committerOwen Taylor <otaylor@src.gnome.org>1998-02-13 05:11:16 +0000
commitdd07df15c1e39eb68a38ac4c15094a25f8e086cd (patch)
tree54a139285cffcaf27dc28c67551665b22e1a2bb1 /gtk/gtkobject.h
parent39e26262a5b1a595f63156056b9f1e34fe10e489 (diff)
downloadgtk+-dd07df15c1e39eb68a38ac4c15094a25f8e086cd.tar.gz
Add a DestroyNotify field, and gtk_object_set_data_full() to match.
Tue Feb 10 15:01:44 1998 Owen Taylor <owt1@cornell.edu> * gtk/gtkobject.c gtk/gtkobject.h: Add a DestroyNotify field, and gtk_object_set_data_full() to match. * gtk/gtkobject.c (gtk_object_finalize): ObjectData structures were being added to a free list, then forgotten about. Just rely on GMemChunk instead.
Diffstat (limited to 'gtk/gtkobject.h')
-rw-r--r--gtk/gtkobject.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk/gtkobject.h b/gtk/gtkobject.h
index 50c911d76e..2c6aeef09d 100644
--- a/gtk/gtkobject.h
+++ b/gtk/gtkobject.h
@@ -260,6 +260,14 @@ void gtk_object_set_data (GtkObject *object,
const gchar *key,
gpointer data);
+/* Like gtk_object_set_data, but takes an additional argument
+ * which is a function to be called when the data is removed
+ */
+void gtk_object_set_data_full (GtkObject *object,
+ const gchar *key,
+ gpointer data,
+ GtkDestroyNotify destroy);
+
/* Get the data associated with "key".
*/
gpointer gtk_object_get_data (GtkObject *object,