]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/gauge.cpp
fixed yet another memory leak in LoadGnomeDataFromKeyFile() (coverity checker CID 51)
[wxWidgets.git] / src / gtk / gauge.cpp
index c7cb38d5a0d88e5a04ddc8449490a1171d752e42..dcff39dc237f42ec63d100ae5982359fc622e18b 100644 (file)
@@ -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