X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..32592f4a80846246cdb6ea3463c80cc1a55dfef1:/src/gtk/gauge.cpp diff --git a/src/gtk/gauge.cpp b/src/gtk/gauge.cpp index c7cb38d5a0..dcff39dc23 100644 --- a/src/gtk/gauge.cpp +++ b/src/gtk/gauge.cpp @@ -53,7 +53,7 @@ bool wxGauge::Create( wxWindow *parent, PostCreation(size); SetBestSize(size); - + return TRUE; } @@ -62,8 +62,8 @@ void wxGauge::DoSetGauge() wxASSERT_MSG( 0 <= m_gaugePos && m_gaugePos <= m_rangeMax, _T("invalid gauge position in DoSetGauge()") ); - gtk_progress_bar_update( GTK_PROGRESS_BAR(m_widget), - m_rangeMax ? ((float)m_gaugePos)/m_rangeMax : 0.); + gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (m_widget), + m_rangeMax ? ((float)m_gaugePos)/m_rangeMax : 0.); } wxSize wxGauge::DoGetBestSize() const