#endif
#include "wx/gauge.h"
+
+#if wxUSE_GAUGE
+
#include "gdk/gdk.h"
#include "gtk/gtk.h"
PreCreation( parent, id, pos, size, style, name );
- SetValidator( validator );
+#if wxUSE_VALIDATORS
+ SetValidator( validator );
+#endif
m_rangeMax = range;
m_gaugePos = 0;
m_widget = gtk_progress_bar_new();
- m_parent->AddChild( this );
-
- (m_parent->m_insertCallback)( m_parent, this );
+ m_parent->DoAddChild( this );
PostCreation();
gtk_widget_set_style( m_widget, m_widgetStyle );
}
+#endif