+void wxFrame::SetToolBar(wxToolBar *toolbar)
+{
+ m_frameToolBar = toolbar;
+ if (m_frameToolBar)
+ {
+ /* insert into toolbar area if not already there */
+ if (m_frameToolBar->m_widget->parent != m_mainWidget)
+ {
+ 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 );
+ }
+ }
+}
+