wxCommandEvent event( wxEVT_COMMAND_TEXT_UPDATED, win->GetId() );
event.SetEventObject( win );
- event.SetInt( win->GetValue() );
+
+ // see above
+ event.SetInt( (int)ceil(win->m_adjust->value) );
win->GetEventHandler()->ProcessEvent( event );
}
{
// invalid number - set text as is (wxMSW compatible)
GtkDisableEvents();
- gtk_entry_set_text( GTK_ENTRY(m_widget), value.mbc_str() );
+ gtk_entry_set_text( GTK_ENTRY(m_widget), wxGTK_CONV( value ) );
GtkEnableEvents();
}
}