- m_mdiMenuBar->m_x = 0;
- m_mdiMenuBar->m_y = 0;
- m_mdiMenuBar->m_width = m_width;
- m_mdiMenuBar->m_height = wxMENU_HEIGHT;
- gtk_myfixed_move( GTK_MYFIXED(m_wxwindow), m_mdiMenuBar->m_widget, 0, 0 );
- gtk_widget_set_usize( m_mdiMenuBar->m_widget, m_width, wxMENU_HEIGHT );
- m_mdiMenuBar->Show( TRUE );
+ wxMDIChildFrame *child_frame = (wxMDIChildFrame *)node->Data();
+ wxMenuBar *menu_bar = child_frame->m_menuBar;
+ if (child_frame->m_menuBar)
+ {
+ if (child_frame == active_child_frame)
+ {
+ if (menu_bar->Show(TRUE))
+ {
+ menu_bar->m_width = m_width;
+ menu_bar->m_height = wxMENU_HEIGHT;
+ gtk_myfixed_set_size( GTK_MYFIXED(m_mainWidget),
+ menu_bar->m_widget,
+ 0, 0, m_width, wxMENU_HEIGHT );
+ menu_bar->SetInvokingWindow( child_frame );
+ }
+ visible_child_menu = TRUE;
+ }
+ else
+ {
+ if (menu_bar->Show(FALSE))
+ {
+ menu_bar->UnsetInvokingWindow( child_frame );
+ }
+ }
+ }
+ node = node->Next();