]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/mac/control.h
have TryValidator even if wxUSE_VALIDATORS=1, so that wxBase library can be used...
[wxWidgets.git] / include / wx / mac / control.h
index d39c5c624ad946d98e1badb738c0a9d45e75fdd9..148c8e729731738b7280f6fc7afef8a45b3fbb7f 100644 (file)
@@ -12,7 +12,7 @@
 #ifndef _WX_CONTROL_H_
 #define _WX_CONTROL_H_
 
-#if defined(__GNUG__) && !defined(__APPLE__)
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma interface "control.h"
 #endif
 
@@ -92,14 +92,6 @@ public:
    inline virtual void SetButtonFont(const wxFont& font);
    inline wxFont& GetLabelFont() const;
    inline wxFont& GetButtonFont() const;
-
-   // Adds callback
-   inline void Callback(const wxFunction function);
-
-   wxFunction GetCallback() { return m_callback; }
-
-protected:
-   wxFunction       m_callback;     // Callback associated with the window
 #endif // WXWIN_COMPATIBILITY
 
 protected:
@@ -119,7 +111,6 @@ private:
 
 
 #if WXWIN_COMPATIBILITY
-    inline void wxControl::Callback(const wxFunction f) { m_callback = f; };
     inline wxFont& wxControl::GetLabelFont() const { return GetFont(); }
     inline wxFont& wxControl::GetButtonFont() const { return GetFont(); }
     inline void wxControl::SetLabelFont(const wxFont& font) { SetFont(font); }