]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/spinctrl.cpp
fixed another place where wxString was used as bool
[wxWidgets.git] / src / gtk / spinctrl.cpp
index 2cea9634f589c038764cb583adcd1d9fd106dd1d..46854f59844562c3faec316db84a765dc9828830 100644 (file)
@@ -72,6 +72,7 @@ gtk_changed(GtkSpinButton* spinbutton, wxSpinCtrl* win)
 
     wxCommandEvent event( wxEVT_COMMAND_TEXT_UPDATED, win->GetId() );
     event.SetEventObject( win );
 
     wxCommandEvent event( wxEVT_COMMAND_TEXT_UPDATED, win->GetId() );
     event.SetEventObject( win );
+    event.SetString( GTK_ENTRY(spinbutton)->text );
 
     // see above
     event.SetInt(win->m_pos);
 
     // see above
     event.SetInt(win->m_pos);
@@ -102,7 +103,6 @@ bool wxSpinCtrl::Create(wxWindow *parent, wxWindowID id,
                         const wxString& name)
 {
     m_needParent = true;
                         const wxString& name)
 {
     m_needParent = true;
-    m_acceptsFocus = true;
 
     if (!PreCreation( parent, pos, size ) ||
         !CreateBase( parent, id, pos, size, style, wxDefaultValidator, name ))
 
     if (!PreCreation( parent, pos, size ) ||
         !CreateBase( parent, id, pos, size, style, wxDefaultValidator, name ))