m_toolbar = GTK_TOOLBAR( gtk_toolbar_new( GTK_ORIENTATION_HORIZONTAL,
GTK_TOOLBAR_ICONS ) );
+// gtk_toolbar_set_space_style( m_toolbar, GTK_TOOLBAR_SPACE_LINE );
m_separation = 5;
gtk_toolbar_set_space_size( m_toolbar, m_separation );
m_hasToolAlready = FALSE;
gtk_toolbar_append_space( m_toolbar );
}
+bool wxToolBar::DeleteTool(int toolIndex)
+{
+ wxNode *node = m_tools.First();
+ while (node)
+ {
+ wxToolBarTool *tool = (wxToolBarTool*)node->Data();
+ if (tool->m_index == toolIndex)
+ {
+ if (tool->m_control)
+ tool->m_control->Destroy();
+ else
+ gtk_widget_destroy( tool->m_item );
+ m_tools.DeleteNode( node );
+
+ return TRUE;
+ }
+ node = node->Next();
+ }
+
+ return FALSE;
+}
+
void wxToolBar::ClearTools()
{
wxFAIL_MSG( wxT("wxToolBar::ClearTools not implemented") );