watch the next ChangeLog update...

-timj
This commit is contained in:
Tim Janik
1998-02-02 14:11:24 +00:00
parent 57bae55574
commit c3154703d0
7 changed files with 40 additions and 34 deletions

View File

@ -100,21 +100,24 @@ static GSList *living_objs = NULL;
static void
gtk_object_debug (void)
{
GSList *node;
printf ("%d living objects\n", obj_count);
for (node = living_objs; node; node = node->next)
{
GtkObject *obj;
obj = (GtkObject*) node->data;
/*
printf ("%p: %s %d %s\n",
obj, gtk_type_name (GTK_OBJECT_TYPE (obj)),
obj->ref_count,
GTK_OBJECT_FLOATING (obj)? "floating" : "");
*/
if (1)
{
GSList *node;
printf ("living objects (%d):\n", obj_count);
for (node = living_objs; node; node = node->next)
{
GtkObject *obj;
obj = (GtkObject*) node->data;
printf ("%p: %s %d %s\n",
obj, gtk_type_name (GTK_OBJECT_TYPE (obj)),
obj->ref_count,
GTK_OBJECT_FLOATING (obj)? "floating" : "");
}
}
printf ("%d living objects\n", obj_count);
}
#endif GTK_OBJECT_DEBUG
@ -531,7 +534,7 @@ struct _GtkWeakRef
gpointer data;
};
static const gchar *weakrefs_key = "weakrefs";
static const gchar *weakrefs_key = "gtk-weakrefs";
void
gtk_object_weakref (GtkObject *object,