[gimp] Go via the toplevel to get to the menubar manager



commit accdd3d8a18392648785316529c08b75e6923bdd
Author: Michael Natterer <mitch gimp org>
Date:   Fri Sep 25 22:01:21 2009 +0200

    Go via the toplevel to get to the menubar manager

 app/gui/gui-vtable.c |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/app/gui/gui-vtable.c b/app/gui/gui-vtable.c
index 8cbe6aa..c04597f 100644
--- a/app/gui/gui-vtable.c
+++ b/app/gui/gui-vtable.c
@@ -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,
-                          display);
+  /* 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);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]