]> git.saurik.com Git - wxWidgets.git/commitdiff
GTK2: gtk_progress_bar_update -> gtk_progress_bar_set_fraction
authorMart Raudsepp <leio@gentoo.org>
Fri, 3 Feb 2006 23:22:40 +0000 (23:22 +0000)
committerMart Raudsepp <leio@gentoo.org>
Fri, 3 Feb 2006 23:22:40 +0000 (23:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37291 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/gauge.cpp

index 4ddfd61e67454c9b952e6c519d10ec9f3ef29de7..dcff39dc237f42ec63d100ae5982359fc622e18b 100644 (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