From: Robin Dunn Date: Wed, 14 Apr 2004 05:19:41 +0000 (+0000) Subject: Ensure PostCreation is always called, so the widget will be shown properly X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ec8c39ed09439735c6badab91142c13255d5b960 Ensure PostCreation is always called, so the widget will be shown properly git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26758 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/statbmp.cpp b/src/gtk/statbmp.cpp index e069dbfbf2..36aba28da0 100644 --- a/src/gtk/statbmp.cpp +++ b/src/gtk/statbmp.cpp @@ -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; } diff --git a/src/gtk1/statbmp.cpp b/src/gtk1/statbmp.cpp index e069dbfbf2..36aba28da0 100644 --- a/src/gtk1/statbmp.cpp +++ b/src/gtk1/statbmp.cpp @@ -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; }