]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/statbox.cpp
attempt to work around SDK specific problems
[wxWidgets.git] / src / motif / statbox.cpp
index f836c53de3cb4a8327155d580aa9f6fb50afce5e..0c3d210a5e638aa101da81d47e77dfcb2649e75b 100644 (file)
@@ -9,7 +9,7 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma implementation "statbox.h"
 #endif
 
@@ -121,7 +121,6 @@ bool wxStaticBox::Create(wxWindow *parent, wxWindowID id,
                 NULL);
     }
     
-    SetCanAddEventHandler(TRUE);
     AttachWidget (parent, m_mainWidget, NULL, pos.x, pos.y, size.x, size.y);
     ChangeBackgroundColour();