X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/456fd7b661b2aa150443fe47a8c9c728c0509f73..9e03e02d0ca493bc65f083600f1427d2ac8028ff:/src/mac/carbon/gauge.cpp diff --git a/src/mac/carbon/gauge.cpp b/src/mac/carbon/gauge.cpp index 6f97b03578..3bfb3e2439 100644 --- a/src/mac/carbon/gauge.cpp +++ b/src/mac/carbon/gauge.cpp @@ -9,17 +9,17 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "gauge.h" #endif -#include "wx/gauge.h" +#include "wx/wxprec.h" #if wxUSE_GAUGE -#if !USE_SHARED_LIBRARY +#include "wx/gauge.h" + IMPLEMENT_DYNAMIC_CLASS(wxGauge, wxControl) -#endif #include "wx/mac/uma.h" @@ -44,7 +44,7 @@ bool wxGauge::Create(wxWindow *parent, wxWindowID id, } */ Rect bounds = wxMacGetBoundsForControl( this , pos , size ) ; - m_peer = new wxMacControl() ; + m_peer = new wxMacControl(this) ; verify_noerr ( CreateProgressBarControl( MAC_WXHWND(parent->MacGetTopLevelWindowRef()) , &bounds , GetValue() , 0 , GetRange() , false /* not indeterminate */ , m_peer->GetControlRefAddr() ) );