X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9d2c19f1367399be8d3220fa1c0fcdcb0ff6b6ae..dcc36b34be1e1492894a5be7a027d99d3e74ebd9:/src/gtk/gauge.cpp?ds=sidebyside diff --git a/src/gtk/gauge.cpp b/src/gtk/gauge.cpp index 25beb33bbe..e0b4b49010 100644 --- a/src/gtk/gauge.cpp +++ b/src/gtk/gauge.cpp @@ -49,6 +49,9 @@ bool wxGauge::Create( wxWindow *parent, GTK_PROGRESS_BOTTOM_TO_TOP ); } + // when using the gauge in indeterminate mode, we need this: + gtk_progress_bar_set_pulse_step(GTK_PROGRESS_BAR (m_widget), 0.05); + m_parent->DoAddChild( this ); PostCreation(size); @@ -105,6 +108,11 @@ int wxGauge::GetValue() const return m_gaugePos; } +void wxGauge::Pulse() +{ + gtk_progress_bar_pulse(GTK_PROGRESS_BAR (m_widget)); +} + wxVisualAttributes wxGauge::GetDefaultAttributes() const { // Visible gauge colours use a different colour state