diff options
author | fluxgen <fluxgen> | 2004-05-02 21:13:08 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2004-05-02 21:13:08 (GMT) |
commit | 33300e91e3b37ec437570580f0e75b1c58ecbdf8 (patch) | |
tree | f6f176441dccd815e2218128ffa67157e3b619eb /src | |
parent | 745dcf42c3e5f52b66afe2ce2f8b806cde71fad9 (diff) | |
download | fluxbox-33300e91e3b37ec437570580f0e75b1c58ecbdf8.zip fluxbox-33300e91e3b37ec437570580f0e75b1c58ecbdf8.tar.bz2 |
added exit command
Diffstat (limited to 'src')
-rw-r--r-- | src/FbCommandFactory.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/FbCommandFactory.cc b/src/FbCommandFactory.cc index b578759..1a17be7 100644 --- a/src/FbCommandFactory.cc +++ b/src/FbCommandFactory.cc | |||
@@ -20,7 +20,7 @@ | |||
20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
21 | // DEALINGS IN THE SOFTWARE. | 21 | // DEALINGS IN THE SOFTWARE. |
22 | 22 | ||
23 | // $Id: FbCommandFactory.cc,v 1.30 2004/04/28 14:59:11 rathnor Exp $ | 23 | // $Id: FbCommandFactory.cc,v 1.31 2004/05/02 21:13:08 fluxgen Exp $ |
24 | 24 | ||
25 | #include "FbCommandFactory.hh" | 25 | #include "FbCommandFactory.hh" |
26 | 26 | ||
@@ -69,6 +69,7 @@ FbCommandFactory::FbCommandFactory() { | |||
69 | "exec", | 69 | "exec", |
70 | "execcommand", | 70 | "execcommand", |
71 | "execute", | 71 | "execute", |
72 | "exit", | ||
72 | "focusup", | 73 | "focusup", |
73 | "focusdown", | 74 | "focusdown", |
74 | "focusleft", | 75 | "focusleft", |
@@ -158,6 +159,8 @@ FbTk::Command *FbCommandFactory::stringToCommand(const std::string &command, | |||
158 | return new SaveResources(); | 159 | return new SaveResources(); |
159 | else if (command == "execcommand" || command == "execute" || command == "exec") | 160 | else if (command == "execcommand" || command == "execute" || command == "exec") |
160 | return new ExecuteCmd(arguments); // execute command on key screen | 161 | return new ExecuteCmd(arguments); // execute command on key screen |
162 | else if (command == "exit") | ||
163 | return new ExitFluxboxCmd(); | ||
161 | else if (command == "quit") | 164 | else if (command == "quit") |
162 | return new FbTk::SimpleCommand<Fluxbox>(*Fluxbox::instance(), &Fluxbox::shutdown); | 165 | return new FbTk::SimpleCommand<Fluxbox>(*Fluxbox::instance(), &Fluxbox::shutdown); |
163 | else if (command == "commanddialog") // run specified fluxbox command | 166 | else if (command == "commanddialog") // run specified fluxbox command |