aboutsummaryrefslogtreecommitdiff
path: root/src/IconbarTool.cc
diff options
context:
space:
mode:
authormarkt <markt>2007-12-13 05:48:00 (GMT)
committermarkt <markt>2007-12-13 05:48:00 (GMT)
commit8b7464046cea5e521ac46811591b0fce0c45aca1 (patch)
tree09df752f426a249ae15375a626a98436c8727593 /src/IconbarTool.cc
parentdaca07edafc2e75eb9ee04d35fe80759308a8583 (diff)
downloadfluxbox_pavel-8b7464046cea5e521ac46811591b0fce0c45aca1.zip
fluxbox_pavel-8b7464046cea5e521ac46811591b0fce0c45aca1.tar.bz2
added FbTk::CommandRegistry, decentralized command parsing, and made them auto-register
Diffstat (limited to 'src/IconbarTool.cc')
-rw-r--r--src/IconbarTool.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/IconbarTool.cc b/src/IconbarTool.cc
index 2574762..f0179d1 100644
--- a/src/IconbarTool.cc
+++ b/src/IconbarTool.cc
@@ -33,7 +33,7 @@
33#include "Workspace.hh" 33#include "Workspace.hh"
34#include "FbMenu.hh" 34#include "FbMenu.hh"
35#include "BoolMenuItem.hh" 35#include "BoolMenuItem.hh"
36#include "CommandParser.hh" 36#include "FbTk/CommandRegistry.hh"
37#include "WinClient.hh" 37#include "WinClient.hh"
38#include "FocusControl.hh" 38#include "FocusControl.hh"
39#include "FbCommands.hh" 39#include "FbCommands.hh"
@@ -282,7 +282,7 @@ IconbarTool::IconbarTool(const FbTk::FbWindow &parent, IconbarTheme &theme,
282 // setup use pixmap item to reconfig iconbar and save resource on click 282 // setup use pixmap item to reconfig iconbar and save resource on click
283 MacroCommand *save_and_reconfig = new MacroCommand(); 283 MacroCommand *save_and_reconfig = new MacroCommand();
284 RefCount<Command> reconfig(new SimpleCommand<IconbarTool>(*this, &IconbarTool::renderTheme)); 284 RefCount<Command> reconfig(new SimpleCommand<IconbarTool>(*this, &IconbarTool::renderTheme));
285 RefCount<Command> save(CommandParser::instance().parseLine("saverc")); 285 RefCount<Command> save(FbTk::CommandRegistry::instance().parseLine("saverc"));
286 save_and_reconfig->add(reconfig); 286 save_and_reconfig->add(reconfig);
287 save_and_reconfig->add(save); 287 save_and_reconfig->add(save);
288 RefCount<Command> s_and_reconfig(save_and_reconfig); 288 RefCount<Command> s_and_reconfig(save_and_reconfig);