X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/14f355c2b5c71fc7c3d680aea366582d2ac60f7b..bf9ce7b55ec8d1e4a8f2dd8ca2c2b6e9f86b57b7:/src/gtk1/statline.cpp diff --git a/src/gtk1/statline.cpp b/src/gtk1/statline.cpp index d4299aa62e..335102c6c4 100644 --- a/src/gtk1/statline.cpp +++ b/src/gtk1/statline.cpp @@ -1,16 +1,11 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: statline.cpp +// Name: src/gtk1/statline.cpp // Purpose: // Author: Robert Roebling -// Id: $Id$ // Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma implementation "statline.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -25,8 +20,6 @@ // wxStaticLine //----------------------------------------------------------------------------- -IMPLEMENT_DYNAMIC_CLASS(wxStaticLine, wxControl) - wxStaticLine::wxStaticLine() { } @@ -74,11 +67,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