Index: gtk/gtkcontainer.c
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtkcontainer.c,v
retrieving revision 1.130.2.5
diff -u -p -d -r1.130.2.5 gtkcontainer.c
--- gtk/gtkcontainer.c	7 Apr 2005 04:45:30 -0000	1.130.2.5
+++ gtk/gtkcontainer.c	8 May 2005 17:11:36 -0000
@@ -95,6 +95,9 @@ static gint     gtk_container_expose    
 						    GdkEventExpose    *event);
 static void     gtk_container_map                  (GtkWidget         *widget);
 static void     gtk_container_unmap                (GtkWidget         *widget);
+static void     gtk_container_traverse             (GObject           *object,
+                                                    GObjectVisitFunc   visit,
+                                                    gpointer           data);
 
 static gchar* gtk_container_child_default_composite_name (GtkContainer *container,
 							  GtkWidget    *child);
@@ -181,6 +184,7 @@ gtk_container_class_init (GtkContainerCl
   
   gobject_class->set_property = gtk_container_set_property;
   gobject_class->get_property = gtk_container_get_property;
+  gobject_class->traverse = gtk_container_traverse;
 
   object_class->destroy = gtk_container_destroy;
 
@@ -2463,6 +2467,17 @@ gtk_container_propagate_expose (GtkConta
       gdk_event_free (child_event);
     }
 }
+
+static void
+gtk_container_traverse (GObject          *object,
+                        GObjectVisitFunc  visit,
+                        gpointer          data)
+{
+      /* Note: assumes GtkCallback has the same signature as
+       * GObjectVisitFunc */
+    gtk_container_forall (GTK_CONTAINER (object), (GtkCallback) visit, data);
+}
+
 
 #define __GTK_CONTAINER_C__
 #include "gtkaliasdef.c"
