]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/statline.cpp
always skip OnSize
[wxWidgets.git] / src / gtk / statline.cpp
index 0e05c9e758d6b988a9c4d0f03d2f845fc798983f..d19a152ccb37e4c493ae99d351d3f7bfb4ecd0e6 100644 (file)
@@ -21,8 +21,6 @@
 // wxStaticLine
 //-----------------------------------------------------------------------------
 
-IMPLEMENT_DYNAMIC_CLASS(wxStaticLine, wxControl)
-
 wxStaticLine::wxStaticLine()
 {
 }
@@ -38,8 +36,6 @@ bool wxStaticLine::Create( wxWindow *parent, wxWindowID id,
                            const wxPoint &pos, const wxSize &size,
                            long style, const wxString &name )
 {
-    m_needParent = TRUE;
-
     if (!PreCreation( parent, pos, size ) ||
         !CreateBase( parent, id, pos, size, style, wxDefaultValidator, name ))
     {
@@ -67,6 +63,7 @@ bool wxStaticLine::Create( wxWindow *parent, wxWindowID id,
             SetSize( new_size );
         }
     }
+    g_object_ref(m_widget);
 
     m_parent->DoAddChild( this );