aboutsummaryrefslogtreecommitdiff
path: root/src/MenuCreator.cc
diff options
context:
space:
mode:
authormathias <mathias>2004-11-30 01:26:00 (GMT)
committermathias <mathias>2004-11-30 01:26:00 (GMT)
commitc8d71542dc266fe533a78ce657757e468ef8d84f (patch)
treeab33e74dc6a04a7378fc6baf47c6c3b29bb867e9 /src/MenuCreator.cc
parent839d5b6ad87e7766e558fda23b2636cadeb3d527 (diff)
downloadfluxbox-c8d71542dc266fe533a78ce657757e468ef8d84f.zip
fluxbox-c8d71542dc266fe533a78ce657757e468ef8d84f.tar.bz2
adds "kill" to the windowmenu
closes #1075142
Diffstat (limited to 'src/MenuCreator.cc')
-rw-r--r--src/MenuCreator.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/MenuCreator.cc b/src/MenuCreator.cc
index 55250cc..829a8a4 100644
--- a/src/MenuCreator.cc
+++ b/src/MenuCreator.cc
@@ -476,6 +476,9 @@ bool MenuCreator::createWindowMenuItem(const std::string &type,
476 } else if (type == "close") { 476 } else if (type == "close") {
477 RefCmd close_cmd(new WindowCmd(win, &FluxboxWindow::close)); 477 RefCmd close_cmd(new WindowCmd(win, &FluxboxWindow::close));
478 menu.insert(label.empty()?_FBTEXT(Windowmenu, Close, "Close", "Close the window"):label.c_str(), close_cmd); 478 menu.insert(label.empty()?_FBTEXT(Windowmenu, Close, "Close", "Close the window"):label.c_str(), close_cmd);
479 } else if (type == "kill" || type == "killwindow") {
480 RefCmd kill_cmd(new WindowCmd(win, &FluxboxWindow::kill));
481 menu.insert(label.empty()?_FBTEXT(Windowmenu, Kill, "Kill", "Kill the window"):label.c_str(), kill_cmd);
479 } else if (type == "lower") { 482 } else if (type == "lower") {
480 RefCmd lower_cmd(new WindowCmd(win, &FluxboxWindow::lower)); 483 RefCmd lower_cmd(new WindowCmd(win, &FluxboxWindow::lower));
481 menu.insert(label.empty()?_FBTEXT(Windowmenu, Lower, "Lower", "Lower the window"):label.c_str(), lower_cmd); 484 menu.insert(label.empty()?_FBTEXT(Windowmenu, Lower, "Lower", "Lower the window"):label.c_str(), lower_cmd);