+}
+
+//-----------------------------------------------------------------------------
+// "changed"
+//-----------------------------------------------------------------------------
+
+extern "C" {
+static void
+gtk_changed(GtkSpinButton* spinbutton, wxSpinCtrl* win)
+{
+ if (!win->m_hasVMT || win->m_blockScrollEvent)
+ return;
+
+ wxCommandEvent event( wxEVT_COMMAND_TEXT_UPDATED, win->GetId() );
+ event.SetEventObject( win );
+ event.SetString( GTK_ENTRY(spinbutton)->text );
+
+ // see above
+ event.SetInt(win->m_pos);
+ win->GetEventHandler()->ProcessEvent( event );
+}
+}