]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/statbmp.cpp
don't use wxFileConfig to parse kdeglobals, it's not meant for such use. Fixes bug...
[wxWidgets.git] / src / gtk / statbmp.cpp
index 91b5df62155b3956d524e49638ea3a6b6ba9e729..36aba28da08b526273d1bb8441a0fd58f6db37e8 100644 (file)
@@ -7,11 +7,12 @@
 // Licence:           wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma implementation "statbmp.h"
 #endif
 
-#include "wx/defs.h"
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
 
 #if wxUSE_STATBMP
 
@@ -83,16 +84,12 @@ bool wxStaticBitmap::Create( wxWindow *parent, wxWindowID id, const wxBitmap &bi
     else
     {
         m_widget = gtk_label_new( "Bitmap" );
-        
         m_focusWidget = m_widget;
-
-        PostCreation();
     }
 
+    PostCreation();
     m_parent->DoAddChild( this );
 
-    Show( TRUE );
-
     return TRUE;
 }