X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a81258bee4e20d3fa9b3d2f6bf3bcd1200d1e5e0..de1359180540b5c5e11eddd4c3d08db4e38d59ea:/src/gtk1/gauge.cpp?ds=sidebyside diff --git a/src/gtk1/gauge.cpp b/src/gtk1/gauge.cpp index bc6f74b995..eb0f339bb0 100644 --- a/src/gtk1/gauge.cpp +++ b/src/gtk1/gauge.cpp @@ -35,6 +35,10 @@ bool wxGauge::Create( wxWindow *parent, wxWindowID id, int range, m_widget = gtk_progress_bar_new(); + m_parent->AddChild( this ); + + (m_parent->m_insertCallback)( m_parent, this ); + PostCreation(); Show( TRUE ); @@ -68,3 +72,9 @@ int wxGauge::GetValue(void) const return m_gaugePos; } +void wxGauge::ApplyWidgetStyle() +{ + SetWidgetStyle(); + gtk_widget_set_style( m_widget, m_widgetStyle ); +} +