X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5f7bcb48fd9a642036a3bf5c70e2b0c9576df1b1..81e2cbc6851553da7a733bbdeb3ab59f4081902c:/src/mac/carbon/button.cpp?ds=sidebyside diff --git a/src/mac/carbon/button.cpp b/src/mac/carbon/button.cpp index 28b8697630..66f2cfdeff 100644 --- a/src/mac/carbon/button.cpp +++ b/src/mac/carbon/button.cpp @@ -9,19 +9,17 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "button.h" #endif -#include "wx/defs.h" +#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 +42,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 ;