Index: app/display/gimpdisplayshell.c
===================================================================
RCS file: /cvs/gnome/gimp/app/display/gimpdisplayshell.c,v
retrieving revision 1.344
diff -u -p -r1.344 gimpdisplayshell.c
--- app/display/gimpdisplayshell.c	8 Oct 2004 09:16:04 -0000	1.344
+++ app/display/gimpdisplayshell.c	19 Oct 2004 21:50:21 -0000
@@ -718,8 +718,37 @@ gimp_display_shell_new (GimpDisplay     
   main_vbox = gtk_vbox_new (FALSE, 0);
   gtk_container_add (GTK_CONTAINER (shell), main_vbox);
 
-  shell->menubar = gimp_ui_manager_ui_get (shell->menubar_manager,
-                                           "/image-menubar");
+  {
+    GTimer *timer;
+    gint i;
+
+    timer = g_timer_new ();
+    g_timer_start (timer);
+
+    for (i = 0; i < 20; i++)
+      {
+        GTimer *timer2;
+
+        timer2 = g_timer_new ();
+        g_timer_start (timer2);
+
+        shell->menubar_manager = gimp_menu_factory_manager_new (menu_factory,
+                                                                "<Image>",
+                                                                gdisp,
+                                                                FALSE);
+        shell->menubar = gimp_ui_manager_ui_get (shell->menubar_manager,
+                                                 "/image-menubar");
+
+        g_print ("%s: creating manager #%d took %f seconds\n",
+                 G_STRFUNC, i, g_timer_elapsed (timer2, NULL));
+        g_timer_destroy (timer2);
+      }
+
+    g_print ("%s: 20 ui managers took %f seconds\n",
+             G_STRFUNC, g_timer_elapsed (timer, NULL));
+    g_timer_destroy (timer);
+  }
+
   gtk_box_pack_start (GTK_BOX (main_vbox), shell->menubar, FALSE, FALSE, 0);
 
   if (shell->options->show_menubar)
