diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2008-05-02 12:47:30 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2008-05-02 12:47:30 (GMT) |
commit | ba604ac821b7c1c89d10b0e8c9f85fde948856ef (patch) | |
tree | 762ee41bece5b5793d29dc5f9aa38af07f001f58 /src/ToolFactory.cc | |
parent | 146a38c7761b8d1944ee2b8f28eec07ce9742be8 (diff) | |
download | fluxbox_pavel-ba604ac821b7c1c89d10b0e8c9f85fde948856ef.zip fluxbox_pavel-ba604ac821b7c1c89d10b0e8c9f85fde948856ef.tar.bz2 |
little hack to allow arbitrary commands in the toolbar
Diffstat (limited to 'src/ToolFactory.cc')
-rw-r--r-- | src/ToolFactory.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ToolFactory.cc b/src/ToolFactory.cc index e6d633e..51692ad 100644 --- a/src/ToolFactory.cc +++ b/src/ToolFactory.cc | |||
@@ -120,8 +120,7 @@ ToolbarItem *ToolFactory::create(const std::string &name, const FbTk::FbWindow & | |||
120 | dynamic_cast<ButtonTheme &>(*m_button_theme), | 120 | dynamic_cast<ButtonTheme &>(*m_button_theme), |
121 | screen().imageControl()); | 121 | screen().imageControl()); |
122 | 122 | ||
123 | } else if (name == "nextwindow" || | 123 | } else { |
124 | name == "prevwindow") { | ||
125 | 124 | ||
126 | FbTk::RefCount<FbTk::Command<void> > cmd(FbTk::CommandParser<void>::instance().parse(name)); | 125 | FbTk::RefCount<FbTk::Command<void> > cmd(FbTk::CommandParser<void>::instance().parse(name)); |
127 | if (*cmd == 0) // we need a command | 126 | if (*cmd == 0) // we need a command |