X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3ca6a5f04692678cd2d9f3ea0843fc3f5a0b254f..90b85bfcde1752db19ab8453e8aa77986b3f4273:/src/gtk/statline.cpp?ds=sidebyside diff --git a/src/gtk/statline.cpp b/src/gtk/statline.cpp index 4e8f0787cb..3f95edd803 100644 --- a/src/gtk/statline.cpp +++ b/src/gtk/statline.cpp @@ -7,10 +7,13 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "statline.h" #endif +// For compilers that support precompilation, includes "wx.h". +#include "wx/wxprec.h" + #include "wx/statline.h" #if wxUSE_STATLINE @@ -71,11 +74,16 @@ bool wxStaticLine::Create( wxWindow *parent, wxWindowID id, m_parent->DoAddChild( this ); - PostCreation(); - - Show( TRUE ); + PostCreation(size); return TRUE; } +// static +wxVisualAttributes +wxStaticLine::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant)) +{ + return GetDefaultAttributesFromGTKWidget(gtk_vseparator_new); +} + #endif