don't show menubar unless is is supposed to be showing, fixes #11147

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@62616 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2009-11-11 18:04:09 +00:00
parent 03e48455d0
commit dcb7b2a6f3

View File

@@ -385,7 +385,7 @@ void wxFrame::GtkOnSize()
#if wxUSE_MENUS_NATIVE
if (m_frameMenuBar && !(m_fsIsShowing && (m_fsSaveFlag & wxFULLSCREEN_NOMENUBAR) != 0))
{
if (!GTK_WIDGET_VISIBLE(m_frameMenuBar->m_widget))
if (m_frameMenuBar->IsShown() && !GTK_WIDGET_VISIBLE(m_frameMenuBar->m_widget))
gtk_widget_show( m_frameMenuBar->m_widget );
int xx = m_miniEdge;
int yy = m_miniEdge + m_miniTitle;