]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/spinbutt.cpp
Renamed GSocket_SetBlocking to GSocket_SetNonBlocking and *Fallback to *Callback
[wxWidgets.git] / src / gtk / spinbutt.cpp
index 31a244d6c3a8b62cd20faa427f75b1e2e67d1472..e4ef0744ed0a6392a402629b274f8a6eb1b4d705 100644 (file)
@@ -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,7 +97,7 @@ bool wxSpinButton::Create(wxWindow *parent,
     if (new_size.y == -1)
         new_size.y = 30;
 
-    if (!PreCreation( parent, pos, size ) ||
+    if (!PreCreation( parent, pos, new_size ) ||
         !CreateBase( parent, id, pos, new_size, style, wxDefaultValidator, name ))
     {
         wxFAIL_MSG( _T("wxXX creation failed") );