void ToolBar::set_item_enabled(const std::string &name, bool flag) { ToolBarItem *item = find_item(name); if (item) item->set_enabled(flag); }