fix wxMDIChildFrame after r69390 and r69468, TLW realization code should not be called, fixes #13593
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69528 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
9f17c488fb
commit
3ec3c160bc
@ -118,6 +118,7 @@ public:
|
||||
|
||||
void OnActivate( wxActivateEvent& event );
|
||||
void OnMenuHighlight( wxMenuEvent& event );
|
||||
virtual void GTKHandleRealized();
|
||||
|
||||
wxMenuBar *m_menuBar;
|
||||
bool m_justInserted;
|
||||
|
@ -294,6 +294,12 @@ wxMDIChildFrame::~wxMDIChildFrame()
|
||||
gtk_widget_queue_draw(m_parent->m_widget);
|
||||
}
|
||||
|
||||
void wxMDIChildFrame::GTKHandleRealized()
|
||||
{
|
||||
// since m_widget is not a GtkWindow, must bypass wxTopLevelWindowGTK
|
||||
wxTopLevelWindowBase::GTKHandleRealized();
|
||||
}
|
||||
|
||||
void wxMDIChildFrame::SetMenuBar( wxMenuBar *menu_bar )
|
||||
{
|
||||
wxASSERT_MSG( m_menuBar == NULL, "Only one menubar allowed" );
|
||||
|
Loading…
Reference in New Issue
Block a user