]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/spinctrl.cpp
Linking with the TIFF library
[wxWidgets.git] / src / gtk / spinctrl.cpp
index 5e13787f4bf7ec94c7064982f18f2d4e217fe4b7..10651bf7659f31e220bd2c3a4596604537d95a1a 100644 (file)
@@ -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();