X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a2053b27b318fe81918a72c838944d1e8cd1524f..4d19d979165dfab92cccd656b9f75c2d516aa21b:/src/gtk/scrolbar.cpp?ds=sidebyside diff --git a/src/gtk/scrolbar.cpp b/src/gtk/scrolbar.cpp index 84a46924ef..a2f96c9a33 100644 --- a/src/gtk/scrolbar.cpp +++ b/src/gtk/scrolbar.cpp @@ -13,6 +13,9 @@ #endif #include "wx/scrolbar.h" + +#if wxUSE_SCROLLBAR + #include "wx/utils.h" #include @@ -136,7 +139,9 @@ bool wxScrollBar::Create(wxWindow *parent, wxWindowID id, PreCreation( parent, id, pos, size, style, name ); +#if wxUSE_VALIDATORS SetValidator( validator ); +#endif m_oldPos = 0.0; @@ -307,3 +312,4 @@ void wxScrollBar::ApplyWidgetStyle() gtk_widget_set_style( m_widget, m_widgetStyle ); } +#endif