]> git.saurik.com Git - wxWidgets.git/commitdiff
Ensure PostCreation is always called, so the widget will be shown properly
authorRobin Dunn <robin@alldunn.com>
Wed, 14 Apr 2004 05:19:41 +0000 (05:19 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 14 Apr 2004 05:19:41 +0000 (05:19 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26758 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/statbmp.cpp
src/gtk1/statbmp.cpp

index e069dbfbf22ac9659e099c53b602184ee06c3aa3..36aba28da08b526273d1bb8441a0fd58f6db37e8 100644 (file)
@@ -84,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;
 }
 
index e069dbfbf22ac9659e099c53b602184ee06c3aa3..36aba28da08b526273d1bb8441a0fd58f6db37e8 100644 (file)
@@ -84,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;
 }