]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/gauge.cpp
call wxApp::OnExceptionInMainLoop() when an exception occurs (refactored the change...
[wxWidgets.git] / src / gtk / gauge.cpp
index 693dbce205f07d3c81194bc29f78c59ff081ec52..45f1d7b86990d3c4d18d6c86546a371fd1909a3a 100644 (file)
@@ -56,7 +56,8 @@ bool wxGauge::Create( wxWindow *parent,
     m_parent->DoAddChild( this );
 
     PostCreation();
-
+    SetBestSize(size);
+    
     Show( TRUE );
 
     return TRUE;
@@ -71,6 +72,11 @@ void wxGauge::DoSetGauge()
                              m_rangeMax ? ((float)m_gaugePos)/m_rangeMax : 0.);
 }
 
+wxSize wxGauge::DoGetBestSize() const
+{
+    return wxSize(100, 28);
+}
+
 void wxGauge::SetRange( int range )
 {
     m_rangeMax = range;