little hack to allow arbitrary commands in the toolbar
Mark Tiefenbruck mark@fluxbox.org
1 files changed,
1 insertions(+),
2 deletions(-)
jump to
M
src/ToolFactory.cc
→
src/ToolFactory.cc
@@ -120,8 +120,7 @@ item = new ButtonTool(win, ToolbarItem::SQUARE,
dynamic_cast<ButtonTheme &>(*m_button_theme), screen().imageControl()); - } else if (name == "nextwindow" || - name == "prevwindow") { + } else { FbTk::RefCount<FbTk::Command<void> > cmd(FbTk::CommandParser<void>::instance().parse(name)); if (*cmd == 0) // we need a command