]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/gauge.cpp
Use "&Help" so wxMac doesn't make an extra help menu
[wxWidgets.git] / src / gtk1 / gauge.cpp
index f180206c79e4f136fa745f4fada77190f5958dbe..45f1d7b86990d3c4d18d6c86546a371fd1909a3a 100644 (file)
@@ -7,10 +7,13 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma implementation "gauge.h"
 #endif
 
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
 #include "wx/gauge.h"
 
 #if wxUSE_GAUGE
@@ -53,7 +56,8 @@ bool wxGauge::Create( wxWindow *parent,
     m_parent->DoAddChild( this );
 
     PostCreation();
-
+    SetBestSize(size);
+    
     Show( TRUE );
 
     return TRUE;
@@ -68,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;