From 0e0d88570a0605c9254d4f188dfb9d9ee9268e5a Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Sat, 27 Nov 1999 20:03:21 +0000 Subject: [PATCH] fixed to correctly use #if wxUSE_SPINCTRL git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4710 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/spinctrl.cpp | 8 ++++---- src/gtk1/spinctrl.cpp | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/gtk/spinctrl.cpp b/src/gtk/spinctrl.cpp index cf1e437da6..15775b251e 100644 --- a/src/gtk/spinctrl.cpp +++ b/src/gtk/spinctrl.cpp @@ -14,7 +14,7 @@ #include "wx/spinctrl.h" -#ifdef wxUSE_SPINBTN +#if wxUSE_SPINCTRL #include "wx/utils.h" #include "wx/spinbutt.h" @@ -67,7 +67,7 @@ static void gtk_spinctrl_callback( GtkWidget *WXUNUSED(widget), wxSpinCtrl *win event.SetPosition( value ); event.SetEventObject( win ); win->GetEventHandler()->ProcessEvent( event ); - + /* always send a thumbtrack event */ if (command != wxEVT_SCROLL_THUMBTRACK) { @@ -205,7 +205,7 @@ void wxSpinCtrl::SetRange(int minVal, int maxVal) m_adjust->upper = fmax; gtk_signal_emit_by_name( GTK_OBJECT(m_adjust), "changed" ); - + // these two calls are required due to some bug in GTK Refresh(); SetFocus(); @@ -221,7 +221,7 @@ void wxSpinCtrl::OnChar( wxKeyEvent &event ) while (top_frame->GetParent() && !(top_frame->GetParent()->m_isFrame)) top_frame = top_frame->GetParent(); GtkWindow *window = GTK_WINDOW(top_frame->m_widget); - + if (window->default_widget) { gtk_widget_activate (window->default_widget); diff --git a/src/gtk1/spinctrl.cpp b/src/gtk1/spinctrl.cpp index cf1e437da6..15775b251e 100644 --- a/src/gtk1/spinctrl.cpp +++ b/src/gtk1/spinctrl.cpp @@ -14,7 +14,7 @@ #include "wx/spinctrl.h" -#ifdef wxUSE_SPINBTN +#if wxUSE_SPINCTRL #include "wx/utils.h" #include "wx/spinbutt.h" @@ -67,7 +67,7 @@ static void gtk_spinctrl_callback( GtkWidget *WXUNUSED(widget), wxSpinCtrl *win event.SetPosition( value ); event.SetEventObject( win ); win->GetEventHandler()->ProcessEvent( event ); - + /* always send a thumbtrack event */ if (command != wxEVT_SCROLL_THUMBTRACK) { @@ -205,7 +205,7 @@ void wxSpinCtrl::SetRange(int minVal, int maxVal) m_adjust->upper = fmax; gtk_signal_emit_by_name( GTK_OBJECT(m_adjust), "changed" ); - + // these two calls are required due to some bug in GTK Refresh(); SetFocus(); @@ -221,7 +221,7 @@ void wxSpinCtrl::OnChar( wxKeyEvent &event ) while (top_frame->GetParent() && !(top_frame->GetParent()->m_isFrame)) top_frame = top_frame->GetParent(); GtkWindow *window = GTK_WINDOW(top_frame->m_widget); - + if (window->default_widget) { gtk_widget_activate (window->default_widget); -- 2.45.2