]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/spinctrl.cpp
fix compilation in wxUSE_MENUS==0 case
[wxWidgets.git] / src / gtk / spinctrl.cpp
index f45bd0cc4a52251b6d76c3e1fc6e1e20f0f926b9..c859e71b2937c7a7d775b102174010e477b835dc 100644 (file)
@@ -18,6 +18,7 @@
 #ifndef WX_PRECOMP
     #include "wx/textctrl.h"    // for wxEVT_COMMAND_TEXT_UPDATED
     #include "wx/utils.h"
+    #include "wx/wxcrtvararg.h"
 #endif
 
 #include "wx/gtk/private.h"
@@ -97,8 +98,6 @@ bool wxSpinCtrl::Create(wxWindow *parent, wxWindowID id,
                         int min, int max, int initial,
                         const wxString& name)
 {
-    m_needParent = true;
-
     if (!PreCreation( parent, pos, size ) ||
         !CreateBase( parent, id, pos, size, style, wxDefaultValidator, name ))
     {