]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/control.cpp
added support for leaving out <embedded objects> that are created during their parent...
[wxWidgets.git] / src / motif / control.cpp
index e488c043aa420b86c6d5eca16253e8d9d1ec428d..6b5b4c916288a0fb68cab47cf01ea4109a57d10a 100644 (file)
@@ -9,7 +9,7 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma implementation "control.h"
 #endif
 
@@ -40,10 +40,6 @@ wxControl::wxControl()
     m_backgroundColour = *wxWHITE;
     m_foregroundColour = *wxBLACK;
 
-#if WXWIN_COMPATIBILITY
-    m_callback = 0;
-#endif // WXWIN_COMPATIBILITY
-
     m_inSetValue = FALSE;
 }
 
@@ -113,15 +109,5 @@ wxString wxControl::GetLabel() const
 
 bool wxControl::ProcessCommand(wxCommandEvent & event)
 {
-#if WXWIN_COMPATIBILITY
-    if ( m_callback )
-    {
-        (void)(*m_callback)(this, event);
-
-        return TRUE;
-    }
-    else
-#endif // WXWIN_COMPATIBILITY
-
     return GetEventHandler()->ProcessEvent(event);
 }