]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/spinbutt.cpp
fixed bug in ReadAll(): it always returned error when reading files with DOS EOLs...
[wxWidgets.git] / src / gtk / spinbutt.cpp
index 423947a1d359eacb17617e3d9de272bb0f7fd386..c11142163ff1a7c8f5043eff5caea3b5d8ae5f95 100644 (file)
@@ -21,9 +21,7 @@
 #if wxUSE_SPINBTN
 
 #include "wx/utils.h"
-
-#include <math.h>
-
+#include "wx/math.h"
 #include "wx/gtk/private.h"
 
 //-----------------------------------------------------------------------------
@@ -225,15 +223,11 @@ bool wxSpinButton::IsOwnGtkWindow( GdkWindow *window )
     return GTK_SPIN_BUTTON(m_widget)->panel == window;
 }
 
-void wxSpinButton::ApplyWidgetStyle()
-{
-    SetWidgetStyle();
-    gtk_widget_set_style( m_widget, m_widgetStyle );
-}
-
 wxSize wxSpinButton::DoGetBestSize() const
 {
-    return wxSize(15, 26);
+    wxSize best(15, 26); // FIXME
+    CacheBestSize(best);
+    return best;
 }
 
 // static