+void wxSpinCtrl::GtkDisableEvents()
+{
+ gtk_signal_disconnect_by_func( GTK_OBJECT(m_adjust),
+ GTK_SIGNAL_FUNC(gtk_spinctrl_callback),
+ (gpointer) this );
+
+ gtk_signal_disconnect_by_func( GTK_OBJECT(m_widget),
+ GTK_SIGNAL_FUNC(gtk_spinctrl_text_changed_callback),
+ (gpointer) this );
+}
+
+void wxSpinCtrl::GtkEnableEvents()
+{
+ gtk_signal_connect( GTK_OBJECT (m_adjust),
+ "value_changed",
+ GTK_SIGNAL_FUNC(gtk_spinctrl_callback),
+ (gpointer) this );
+
+ gtk_signal_connect( GTK_OBJECT(m_widget),
+ "changed",
+ GTK_SIGNAL_FUNC(gtk_spinctrl_text_changed_callback),
+ (gpointer)this);
+}
+