X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/489468feaa08b8f504735eecca522fb8d0f825d2..76de2296f11750653010fe537a6e6046551cc647:/src/osx/carbon/button.cpp diff --git a/src/osx/carbon/button.cpp b/src/osx/carbon/button.cpp index 87fa56c82b..9974fc5aa4 100644 --- a/src/osx/carbon/button.cpp +++ b/src/osx/carbon/button.cpp @@ -21,7 +21,7 @@ #include "wx/stockitem.h" -#include "wx/mac/uma.h" +#include "wx/osx/uma.h" IMPLEMENT_DYNAMIC_CLASS(wxButton, wxControl) @@ -92,7 +92,7 @@ bool wxButton::Create(wxWindow *parent, } verify_noerr( err ); - wxASSERT_MSG( m_peer != NULL && m_peer->Ok() , wxT("No valid Mac control") ) ; + wxASSERT_MSG( m_peer != NULL && m_peer->IsOk() , wxT("No valid Mac control") ) ; MacPostControlCreate( pos, size ); @@ -154,7 +154,7 @@ wxSize wxButton::DoGetBestSize() const wxCFStringRef str( m_label, GetFont().GetEncoding() ); -#if wxMAC_USE_ATSU_TEXT +#if wxOSX_USE_ATSU_TEXT SInt16 baseline; if ( m_font.MacGetThemeFontID() != kThemeCurrentPortFont ) { @@ -236,7 +236,7 @@ bool wxDisclosureTriangle::Create(wxWindow *parent, wxWindowID id, const wxStrin m_peer->GetControlRefAddr() ); verify_noerr( err ); - wxASSERT_MSG( m_peer != NULL && m_peer->Ok() , wxT("No valid Mac control") ) ; + wxASSERT_MSG( m_peer != NULL && m_peer->IsOk() , wxT("No valid Mac control") ) ; MacPostControlCreate( pos, size ); // passing the text in the param doesn't seem to work, so lets do if again