X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c821db16e6e7675e00a2f87c0320ef75ed8a7ce1..1e08ad102a62fde75545adbd3db0171824020c58:/src/gtk/mdi.cpp?ds=inline diff --git a/src/gtk/mdi.cpp b/src/gtk/mdi.cpp index 607dc314d7..7c384c2d54 100644 --- a/src/gtk/mdi.cpp +++ b/src/gtk/mdi.cpp @@ -292,6 +292,18 @@ void wxMDIParentFrame::ActivatePrevious() gtk_notebook_prev_page( GTK_NOTEBOOK(m_clientWindow->m_widget) ); } +bool wxMDIParentFrame::HasVisibleMenubar() const +{ + if (wxFrame::HasVisibleMenubar()) + return true; + + wxMDIChildFrame* active_child_frame = GetActiveChild(); + wxMenuBar* menubar = NULL; + if (active_child_frame) + menubar = active_child_frame->m_menuBar; + return menubar && menubar->IsShown(); +} + //----------------------------------------------------------------------------- // wxMDIChildFrame //-----------------------------------------------------------------------------