diff options
author | markt <markt> | 2007-12-13 05:48:00 (GMT) |
---|---|---|
committer | markt <markt> | 2007-12-13 05:48:00 (GMT) |
commit | 8b7464046cea5e521ac46811591b0fce0c45aca1 (patch) | |
tree | 09df752f426a249ae15375a626a98436c8727593 /src/WorkspaceMenu.cc | |
parent | daca07edafc2e75eb9ee04d35fe80759308a8583 (diff) | |
download | fluxbox-8b7464046cea5e521ac46811591b0fce0c45aca1.zip fluxbox-8b7464046cea5e521ac46811591b0fce0c45aca1.tar.bz2 |
added FbTk::CommandRegistry, decentralized command parsing, and made them auto-register
Diffstat (limited to 'src/WorkspaceMenu.cc')
-rw-r--r-- | src/WorkspaceMenu.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/WorkspaceMenu.cc b/src/WorkspaceMenu.cc index 43cd3a3..23d4007 100644 --- a/src/WorkspaceMenu.cc +++ b/src/WorkspaceMenu.cc | |||
@@ -27,7 +27,7 @@ | |||
27 | #include "Workspace.hh" | 27 | #include "Workspace.hh" |
28 | #include "WorkspaceCmd.hh" | 28 | #include "WorkspaceCmd.hh" |
29 | #include "MenuCreator.hh" | 29 | #include "MenuCreator.hh" |
30 | #include "CommandParser.hh" | 30 | #include "FbTk/CommandRegistry.hh" |
31 | #include "FbCommands.hh" | 31 | #include "FbCommands.hh" |
32 | #include "Layer.hh" | 32 | #include "Layer.hh" |
33 | 33 | ||
@@ -147,7 +147,7 @@ void WorkspaceMenu::init(BScreen &screen) { | |||
147 | remove_workspace_macro->add(saverc_cmd); | 147 | remove_workspace_macro->add(saverc_cmd); |
148 | RefCount<Command> remove_last_cmd(remove_workspace_macro); | 148 | RefCount<Command> remove_last_cmd(remove_workspace_macro); |
149 | 149 | ||
150 | RefCount<Command> start_edit(CommandParser::instance().parseLine("setworkspacenamedialog")); | 150 | RefCount<Command> start_edit(FbTk::CommandRegistry::instance().parseLine("setworkspacenamedialog")); |
151 | 151 | ||
152 | insert(new FbTk::MenuSeparator()); | 152 | insert(new FbTk::MenuSeparator()); |
153 | insert(_FB_XTEXT(Workspace, NewWorkspace, "New Workspace", "Add a new workspace"), | 153 | insert(_FB_XTEXT(Workspace, NewWorkspace, "New Workspace", "Add a new workspace"), |