X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3ca6a5f04692678cd2d9f3ea0843fc3f5a0b254f..4e15d1caa03346c126015019c1fdf093033ef40b:/src/gtk1/statline.cpp?ds=sidebyside diff --git a/src/gtk1/statline.cpp b/src/gtk1/statline.cpp index 4e8f0787cb..ae6aa2dfed 100644 --- a/src/gtk1/statline.cpp +++ b/src/gtk1/statline.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: statline.cpp +// Name: src/gtk1/statline.cpp // Purpose: // Author: Robert Roebling // Id: $Id$ @@ -7,9 +7,8 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -#pragma implementation "statline.h" -#endif +// For compilers that support precompilation, includes "wx.h". +#include "wx/wxprec.h" #include "wx/statline.h" @@ -22,8 +21,6 @@ // wxStaticLine //----------------------------------------------------------------------------- -IMPLEMENT_DYNAMIC_CLASS(wxStaticLine, wxControl) - wxStaticLine::wxStaticLine() { } @@ -71,11 +68,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