GTK2: gtk_progress_bar_update -> gtk_progress_bar_set_fraction

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37291 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mart Raudsepp
2006-02-03 23:22:40 +00:00
parent 34c1f23146
commit 1856b88fc3

View File

@@ -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