diff --git a/src/gtk/statbox.cpp b/src/gtk/statbox.cpp index b071ecd711..bd64a6076d 100644 --- a/src/gtk/statbox.cpp +++ b/src/gtk/statbox.cpp @@ -122,7 +122,7 @@ void wxStaticBox::AddChild( wxWindowBase *child ) gtk_container_add( GTK_CONTAINER (m_widget), m_wxwindow ); } - wxWindow::AddChild( child ); + wxStaticBoxBase::AddChild(child); } void wxStaticBox::SetLabel( const wxString& label ) @@ -154,7 +154,6 @@ wxStaticBox::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant)) return GetDefaultAttributesFromGTKWidget(gtk_frame_new("")); } - void wxStaticBox::GetBordersForSizer(int *borderTop, int *borderOther) const { *borderTop = GetCharHeight();