X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/58c837a4e67c0996134cc0947691dc09c5f26687..b49576e07725d578c231fdd09243d9edb0eab701:/src/gtk/spinctrl.cpp diff --git a/src/gtk/spinctrl.cpp b/src/gtk/spinctrl.cpp index 5e13787f4b..10651bf765 100644 --- a/src/gtk/spinctrl.cpp +++ b/src/gtk/spinctrl.cpp @@ -30,6 +30,8 @@ extern void wxapp_install_idle_handler(); extern bool g_isIdle; +static const float sensitivity = 0.02; + //----------------------------------------------------------------------------- // data //----------------------------------------------------------------------------- @@ -81,7 +83,7 @@ bool wxSpinCtrl::Create(wxWindow *parent, wxWindowID id, !CreateBase( parent, id, pos, new_size, style, wxDefaultValidator, name )) { wxFAIL_MSG( wxT("wxSpinCtrl creation failed") ); - return FALSE; + return FALSE; } m_oldPos = initial; @@ -194,13 +196,13 @@ void wxSpinCtrl::OnChar( wxKeyEvent &event ) wxWindow *top_frame = m_parent; while (top_frame->GetParent() && !(top_frame->GetParent()->m_isFrame)) top_frame = top_frame->GetParent(); - GtkWindow *window = GTK_WINDOW(top_frame->m_widget); + GtkWindow *window = GTK_WINDOW(top_frame->m_widget); - if (window->default_widget) + if (window->default_widget) { gtk_widget_activate (window->default_widget); - return; - } + return; + } } event.Skip();