]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/statline.cpp
Fix compilation error
[wxWidgets.git] / src / gtk1 / statline.cpp
index 4e8f0787cb0b5d2f1a0dad7912883a1d6b8c05fe..0e05c9e758d6b988a9c4d0f03d2f845fc798983f 100644 (file)
@@ -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"
 
@@ -71,11 +70,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