]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/spinctlg.cpp
Don't needlessly indirect through NSNotificationCenter.
[wxWidgets.git] / src / generic / spinctlg.cpp
index d30a8c23190230a4c6a1dcdfe1a4b125b8d7dc75..88de174cfd1cbce078abe74707d9255c062756b9 100644 (file)
 // headers
 // ----------------------------------------------------------------------------
 
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-    #pragma implementation "spinctlg.h"
-#endif
-
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
@@ -187,7 +183,7 @@ bool wxSpinCtrl::Create(wxWindow *parent,
 
     m_btn->SetRange(min, max);
     m_btn->SetValue(initial);
-    SetBestSize(size);
+    SetInitialSize(size);
     Move(pos);
 
     // have to disable this window to avoid interfering it with message