+void wxSpinCtrl::GtkDisableEvents()
+{
+ g_signal_handlers_disconnect_by_func (m_adjust,
+ (gpointer) gtk_spinctrl_callback,
+ this);
+ g_signal_handlers_disconnect_by_func (m_widget,
+ (gpointer) gtk_spinctrl_text_changed_callback,
+ this);
+}
+
+void wxSpinCtrl::GtkEnableEvents()
+{
+ g_signal_connect (m_adjust, "value_changed",
+ G_CALLBACK (gtk_spinctrl_callback),
+ this);
+ g_signal_connect (m_widget, "changed",
+ G_CALLBACK (gtk_spinctrl_text_changed_callback),
+ this);
+}
+