X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f03fc89fff2d6e823e7d4d14fbe14822ad6777b1..2b2edbedb47a54bea26df1bede371bf761e3a233:/src/gtk1/slider.cpp diff --git a/src/gtk1/slider.cpp b/src/gtk1/slider.cpp index 393dddf10c..b2f0bccefc 100644 --- a/src/gtk1/slider.cpp +++ b/src/gtk1/slider.cpp @@ -12,6 +12,9 @@ #endif #include "wx/slider.h" + +#if wxUSE_SLIDER + #include "wx/utils.h" #include @@ -39,7 +42,7 @@ static void gtk_slider_callback( GtkWidget *WXUNUSED(widget), wxSlider *win ) { if (g_isIdle) wxapp_install_idle_handler(); - if (!win->HasVMT()) return; + if (!win->m_hasVMT) return; if (g_blockEventsOnDrag) return; float diff = win->m_adjust->value - win->m_oldPos; @@ -97,7 +100,9 @@ bool wxSlider::Create(wxWindow *parent, wxWindowID id, PreCreation( parent, id, pos, size, style, name ); +#if wxUSE_VALIDATORS SetValidator( validator ); +#endif m_oldPos = 0.0; @@ -289,3 +294,5 @@ void wxSlider::ApplyWidgetStyle() SetWidgetStyle(); gtk_widget_set_style( m_widget, m_widgetStyle ); } + +#endif