X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a8e9860d9fa86d3cf354b0b05739da379d3e9ae1..2ddb4d13585d5235556119fb1937273da9e433a3:/src/mac/carbon/button.cpp diff --git a/src/mac/carbon/button.cpp b/src/mac/carbon/button.cpp index 0298236cc3..9ece344ddf 100644 --- a/src/mac/carbon/button.cpp +++ b/src/mac/carbon/button.cpp @@ -9,19 +9,13 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma implementation "button.h" -#endif - #include "wx/wxprec.h" #include "wx/button.h" #include "wx/panel.h" #include "wx/stockitem.h" -#if !USE_SHARED_LIBRARY IMPLEMENT_DYNAMIC_CLASS(wxButton, wxControl) -#endif #include "wx/mac/uma.h" // Button @@ -44,7 +38,7 @@ bool wxButton::Create(wxWindow *parent, wxWindowID id, const wxString& lbl, m_label = label ; Rect bounds = wxMacGetBoundsForControl( this , pos , size ) ; - m_peer = new wxMacControl() ; + m_peer = new wxMacControl(this) ; if ( id == wxID_HELP ) { ControlButtonContentInfo info ;