- gtk_widget_ref( m_frameToolBar->m_widget );
- gtk_widget_unparent( m_frameToolBar->m_widget );
-
- m_insertInClientArea = TRUE;
- wxInsertChildInFrame( this, m_frameToolBar );
- m_insertInClientArea = FALSE;
-
- gtk_widget_unref( m_frameToolBar->m_widget );
+ GetChildren().DeleteObject( m_frameToolBar );
+
+ gtk_widget_reparent( m_frameToolBar->m_widget, m_mainWidget );
+ UpdateSize();