]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/tabctrl.cpp
changing code that doesn't work on 10.5 as advertised
[wxWidgets.git] / src / mac / carbon / tabctrl.cpp
index 433bb55811d1976b30cc95349d43b30653e6fa4c..bd557b762d77ef0bc1aaa4c3d8a716a4d566cec4 100644 (file)
@@ -1,20 +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"
 
 #if wxUSE_TAB_DIALOG
 
-#include "wx/control.h"
 #include "wx/tabctrl.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/control.h"
+#endif
+
 #include "wx/mac/uma.h"
 
 IMPLEMENT_DYNAMIC_CLASS(wxTabCtrl, wxControl)
@@ -52,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 );