]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/classic/control.cpp
unused win_gtk stuff
[wxWidgets.git] / src / mac / classic / control.cpp
index 4d5f5c15ad4faffd78c6f72051669e9b7472f200..1599c395c5bb5c110b98e5d71b0a3e03855a79b7 100644 (file)
 #endif
 
 #include "wx/control.h"
-#include "wx/panel.h"
-#include "wx/app.h"
-#include "wx/dc.h"
-#include "wx/dcclient.h"
+
+#ifndef WX_PRECOMP
+    #include "wx/app.h"
+    #include "wx/panel.h"
+    #include "wx/dc.h"
+    #include "wx/dcclient.h"
+    #include "wx/button.h"
+#endif // WX_PRECOMP
+
 #include "wx/notebook.h"
 #include "wx/tabctrl.h"
 #include "wx/radiobox.h"
 #include "wx/spinbutt.h"
 #include "wx/scrolbar.h"
-#include "wx/button.h"
 #include "wx/dialog.h"
 #include "wx/statbox.h"
 #include "wx/sizer.h"
@@ -435,13 +439,13 @@ void wxControl::MacAdjustControlRect()
         {
             if ( IsKindOf( CLASSINFO( wxButton ) ) )
             {
-                m_width = m_label.Length() * 8 + 12 ;
+                m_width = m_label.length() * 8 + 12 ;
                 if ( m_width < 70 )
                   m_width = 70 ;
             }
             else if ( IsKindOf( CLASSINFO( wxStaticText ) ) )
             {
-                m_width = m_label.Length() * 8 ;
+                m_width = m_label.length() * 8 ;
             }
             else
                 m_width = bestsize.right - bestsize.left ;