X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cf5d50573f5471ed00203d3cee8661a1a6d885ce..40e5ebbf98728d627e4d3c9e3a57f28f5bb8fcb9:/src/gtk/spinctrl.cpp diff --git a/src/gtk/spinctrl.cpp b/src/gtk/spinctrl.cpp index 46854f5984..c859e71b29 100644 --- a/src/gtk/spinctrl.cpp +++ b/src/gtk/spinctrl.cpp @@ -18,6 +18,7 @@ #ifndef WX_PRECOMP #include "wx/textctrl.h" // for wxEVT_COMMAND_TEXT_UPDATED #include "wx/utils.h" + #include "wx/wxcrtvararg.h" #endif #include "wx/gtk/private.h" @@ -36,8 +37,6 @@ extern "C" { static void gtk_value_changed(GtkSpinButton* spinbutton, wxSpinCtrl* win) { - if (g_isIdle) wxapp_install_idle_handler(); - win->m_pos = int(gtk_spin_button_get_value(spinbutton)); if (!win->m_hasVMT || g_blockEventsOnDrag || win->m_blockScrollEvent) return; @@ -64,9 +63,6 @@ extern "C" { static void gtk_changed(GtkSpinButton* spinbutton, wxSpinCtrl* win) { - if (g_isIdle) - wxapp_install_idle_handler(); - if (!win->m_hasVMT || win->m_blockScrollEvent) return; @@ -102,8 +98,6 @@ bool wxSpinCtrl::Create(wxWindow *parent, wxWindowID id, int min, int max, int initial, const wxString& name) { - m_needParent = true; - if (!PreCreation( parent, pos, size ) || !CreateBase( parent, id, pos, size, style, wxDefaultValidator, name )) {