X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/31528cd3cac75558beef4bce0ba21fd182a808ab..3d9431bf7e69b8f4752435b9750e13064a4a01cb:/src/gtk/spinbutt.cpp diff --git a/src/gtk/spinbutt.cpp b/src/gtk/spinbutt.cpp index 4847cc4de5..e4ef0744ed 100644 --- a/src/gtk/spinbutt.cpp +++ b/src/gtk/spinbutt.cpp @@ -67,7 +67,6 @@ static void gtk_spinbutt_callback( GtkWidget *WXUNUSED(widget), wxSpinButton *wi wxSpinEvent event( command, win->GetId()); event.SetPosition( value ); - event.SetOrientation( wxVERTICAL ); event.SetEventObject( win ); win->GetEventHandler()->ProcessEvent( event ); @@ -98,9 +97,12 @@ bool wxSpinButton::Create(wxWindow *parent, if (new_size.y == -1) new_size.y = 30; - PreCreation( parent, id, pos, new_size, style, name ); - -// SetValidator( validator ); + if (!PreCreation( parent, pos, new_size ) || + !CreateBase( parent, id, pos, new_size, style, wxDefaultValidator, name )) + { + wxFAIL_MSG( _T("wxXX creation failed") ); + return FALSE; + } m_oldPos = 0.0;