X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fdfd5d49ebd4d071d19ee2eed7fab5db7fe2f7b1..34040e3126a6714928377e6f81cc2a9eb476075f:/src/motif/mdi.cpp diff --git a/src/motif/mdi.cpp b/src/motif/mdi.cpp index daf09e2582..87a201a0e2 100644 --- a/src/motif/mdi.cpp +++ b/src/motif/mdi.cpp @@ -9,7 +9,7 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "mdi.h" #endif @@ -391,7 +391,6 @@ bool wxMDIChildFrame::Create(wxMDIParentFrame *parent, XtAddEventHandler((Widget) m_mainWidget, ExposureMask,FALSE, wxUniversalRepaintProc, (XtPointer) this); - SetCanAddEventHandler(TRUE); AttachWidget (parent, m_mainWidget, (WXWidget) NULL, pos.x, pos.y, size.x, size.y); ChangeBackgroundColour();