- return ((!m_IsInside && node->GetName() == _T("toolbar")) ||
- (m_IsInside && node->GetName() == _T("tool")) ||
- (m_IsInside && node->GetName() == _T("separator")));
+ return ((!m_IsInside && IsOfClass(node, wxT("wxToolBar"))) ||
+ (m_IsInside && IsOfClass(node, wxT("tool"))) ||
+ (m_IsInside && IsOfClass(node, wxT("separator"))));