Go via the toplevel to get to the menubar manager

This commit is contained in:
Michael Natterer 2009-09-25 22:01:21 +02:00
parent 6c76120561
commit accdd3d8a1

View file

@ -356,9 +356,13 @@ gui_display_create (Gimp *gimp,
gimp_context_set_display (context, display);
}
/* FIXME image window */
gimp_ui_manager_update (GIMP_IMAGE_WINDOW (display->shell)->menubar_manager,
/* FIXME image window: do this elsewhere */
{
GtkWidget *toplevel = gtk_widget_get_toplevel (display->shell);
gimp_ui_manager_update (GIMP_IMAGE_WINDOW (toplevel)->menubar_manager,
display);
}
return GIMP_OBJECT (display);
}