]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/collpane.cpp
compilation fixes for some cases
[wxWidgets.git] / src / gtk / collpane.cpp
index 3ba9f7e25fe4f700671b80b55b2521c96795a412..9dab8612470686772b0b2c05ae49baebb5af447f 100644 (file)
@@ -198,7 +198,6 @@ bool wxCollapsiblePane::Create(wxWindow *parent,
         return wxGenericCollapsiblePane::Create(parent, id, label,
                                                 pos, size, style, val, name);
 
-    m_needParent = true;
     m_bIgnoreNextChange = false;
 
     if ( !PreCreation( parent, pos, size ) ||
@@ -225,7 +224,7 @@ bool wxCollapsiblePane::Create(wxWindow *parent,
     m_pPane = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxDefaultSize,
                            wxTAB_TRAVERSAL|wxNO_BORDER);
 
-    gtk_widget_show( GTK_WIDGET(m_widget) );
+    gtk_widget_show(m_widget);
     m_parent->DoAddChild( this );
 
     PostCreation(size);