]> git.saurik.com Git - wxWidgets.git/commitdiff
In wxApp::OnIdle() check to see if there is not a current menubar and if
authorDavid Elliott <dfe@tgwbd.org>
Thu, 19 Jun 2003 18:20:26 +0000 (18:20 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Thu, 19 Jun 2003 18:20:26 +0000 (18:20 +0000)
there is a common menubar, install it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21244 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/app.cpp
src/mac/carbon/app.cpp

index ebbb1498bef734f6546016c2febd2d9440c81084..ad2eb4d5ea45d23143511b984a81e2091ddcab69 100644 (file)
@@ -1222,6 +1222,8 @@ void wxApp::OnIdle(wxIdleEvent& event)
     wxMacProcessNotifierAndPendingEvents();
 
   s_inOnIdle = FALSE;
+  if(!wxMenuBar::MacGetInstalledMenuBar() && wxMenuBar::MacGetCommonMenuBar())
+    wxMenuBar::MacGetCommonMenuBar()->MacInstallMenuBar();
 }
 
 void wxWakeUpIdle()
index ebbb1498bef734f6546016c2febd2d9440c81084..ad2eb4d5ea45d23143511b984a81e2091ddcab69 100644 (file)
@@ -1222,6 +1222,8 @@ void wxApp::OnIdle(wxIdleEvent& event)
     wxMacProcessNotifierAndPendingEvents();
 
   s_inOnIdle = FALSE;
+  if(!wxMenuBar::MacGetInstalledMenuBar() && wxMenuBar::MacGetCommonMenuBar())
+    wxMenuBar::MacGetCommonMenuBar()->MacInstallMenuBar();
 }
 
 void wxWakeUpIdle()