]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/gauge.cpp
Avoid clash with control container event handlers
[wxWidgets.git] / src / univ / gauge.cpp
index b6cf655b041d4bc20794d9855f2f99ef5adef6d8..c887c2cf176cced1e02e0a87080eba4db5d683d0 100644 (file)
 // headers
 // ----------------------------------------------------------------------------
 
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-    #pragma implementation "gaugeuniv.h"
-#endif
-
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
     #pragma hdrstop
 #endif
 
-#ifndef WX_PRECOMP
-#endif //WX_PRECOMP
+#if wxUSE_GAUGE
 
 #include "wx/gauge.h"
 
-#if wxUSE_GAUGE
+#ifndef WX_PRECOMP
+#endif //WX_PRECOMP
 
 #include "wx/univ/renderer.h"
 
@@ -68,7 +64,7 @@ bool wxGauge::Create(wxWindow *parent,
         return false;
     }
 
-    SetBestSize(size);
+    SetInitialSize(size);
 
     return true;
 }