X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f03fc89fff2d6e823e7d4d14fbe14822ad6777b1..b1830dfaba2360646c4ddea51855058e8173d838:/src/gtk/gauge.cpp diff --git a/src/gtk/gauge.cpp b/src/gtk/gauge.cpp index ff974edef9..e176cbe194 100644 --- a/src/gtk/gauge.cpp +++ b/src/gtk/gauge.cpp @@ -12,6 +12,9 @@ #endif #include "wx/gauge.h" + +#if wxUSE_GAUGE + #include "gdk/gdk.h" #include "gtk/gtk.h" @@ -29,7 +32,9 @@ bool wxGauge::Create( wxWindow *parent, wxWindowID id, int range, PreCreation( parent, id, pos, size, style, name ); - SetValidator( validator ); +#if wxUSE_VALIDATORS + SetValidator( validator ); +#endif m_rangeMax = range; m_gaugePos = 0; @@ -78,3 +83,4 @@ void wxGauge::ApplyWidgetStyle() gtk_widget_set_style( m_widget, m_widgetStyle ); } +#endif