]> git.saurik.com Git - wxWidgets.git/commitdiff
fix wxMDIChildFrame after r69390 and r69468, TLW realization code should not be calle...
authorPaul Cornett <paulcor@bullseye.com>
Tue, 25 Oct 2011 16:56:57 +0000 (16:56 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Tue, 25 Oct 2011 16:56:57 +0000 (16:56 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69528 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/gtk/mdi.h
src/gtk/mdi.cpp

index d4d65c04396d69b9a91737f73c2f8470d80261a1..dcb4b01d15dee6945125351c4e8b86b5521be173 100644 (file)
@@ -118,6 +118,7 @@ public:
 
     void OnActivate( wxActivateEvent& event );
     void OnMenuHighlight( wxMenuEvent& event );
+    virtual void GTKHandleRealized();
 
     wxMenuBar         *m_menuBar;
     bool               m_justInserted;
index 760a4ac4ef5c81bde5ca78cedc6f8e1e20ea9799..bd97417ddd2e53d899c883964417ad1f76146461 100644 (file)
@@ -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" );