]> git.mxchange.org Git - flightgear.git/blobdiff - src/GUI/new_gui.cxx
Expose a radio function (receiveBeacon) to the Nasal subsystem
[flightgear.git] / src / GUI / new_gui.cxx
index f9d7941c26270ecf7ae8a3d808749142797a0a5b..c13456068ba39ca860d08ff393669c0e021a3b4c 100644 (file)
 #endif
 
 #include "FGPUIMenuBar.hxx"
+
+#if defined(SG_MAC)
+#include "FGCocoaMenuBar.hxx"
+#endif
+
 #include "FGPUIDialog.hxx"
 #include "FGFontCache.hxx"
 #include "FGColor.hxx"
@@ -40,10 +45,14 @@ using std::string;
 
 
 
-NewGUI::NewGUI ()
-    : _menubar(new FGPUIMenuBar),
-      _active_dialog(0)
+NewGUI::NewGUI () :
+  _active_dialog(0)
 {
+#if defined(SG_MAC)
+  _menubar.reset(new FGCocoaMenuBar);
+#else
+  _menubar.reset(new FGPUIMenuBar);
+#endif
 }
 
 NewGUI::~NewGUI ()
@@ -91,7 +100,9 @@ NewGUI::reset (bool reload)
     setStyle();
 
     unbind();
+#if !defined(SG_MAC)
     _menubar.reset(new FGPUIMenuBar);
+#endif
 
     if (reload) {
         _dialog_props.clear();