X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/274b7a40ef7abdd6324c545578be96a529ec8eb9..ed6e7f8cfeb41348e13032c5a323d96bcfb22c6d:/src/mac/carbon/tabctrl.cpp diff --git a/src/mac/carbon/tabctrl.cpp b/src/mac/carbon/tabctrl.cpp index fdce08e0ee..bd557b762d 100644 --- a/src/mac/carbon/tabctrl.cpp +++ b/src/mac/carbon/tabctrl.cpp @@ -1,18 +1,24 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: tabctrl.cpp +// Name: src/mac/carbon/tabctrl.cpp // Purpose: wxTabCtrl // Author: Stefan Csomor // Modified by: // Created: 1998-01-01 // RCS-ID: $Id$ // Copyright: (c) Stefan Csomor -// Licence: wxWindows licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #include "wx/wxprec.h" -#include "wx/control.h" +#if wxUSE_TAB_DIALOG + #include "wx/tabctrl.h" + +#ifndef WX_PRECOMP + #include "wx/control.h" +#endif + #include "wx/mac/uma.h" IMPLEMENT_DYNAMIC_CLASS(wxTabCtrl, wxControl) @@ -50,10 +56,7 @@ bool wxTabCtrl::Create( wxWindow *parent, tabsize = kControlTabSizeSmall ; else if ( GetWindowVariant() == wxWINDOW_VARIANT_MINI ) { - if (UMAGetSystemVersion() >= 0x1030 ) - tabsize = 3 ; - else - tabsize = kControlSizeSmall; + tabsize = 3 ; } m_peer = new wxMacControl( this ); @@ -196,3 +199,4 @@ void wxTabCtrl::SetPadding(const wxSize& padding) // TODO: } +#endif // wxUSE_TAB_DIALOG