diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2008-05-28 09:32:57 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2008-05-28 09:32:57 (GMT) |
commit | 467fefaae453e0c1eae0340f1d1d7d89eafd3e22 (patch) | |
tree | d0dfbeae07795965a27a860adb8f1fe65ab0b57c /src/MenuCreator.cc | |
parent | 130012c01056250e969d02bc82a26e4a28899e1a (diff) | |
download | fluxbox-467fefaae453e0c1eae0340f1d1d7d89eafd3e22.zip fluxbox-467fefaae453e0c1eae0340f1d1d7d89eafd3e22.tar.bz2 |
more more fun with the window menu
Diffstat (limited to 'src/MenuCreator.cc')
-rw-r--r-- | src/MenuCreator.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/MenuCreator.cc b/src/MenuCreator.cc index 1af5482..8c3ee6b 100644 --- a/src/MenuCreator.cc +++ b/src/MenuCreator.cc | |||
@@ -28,6 +28,7 @@ | |||
28 | #include "fluxbox.hh" | 28 | #include "fluxbox.hh" |
29 | #include "Window.hh" | 29 | #include "Window.hh" |
30 | #include "WindowCmd.hh" | 30 | #include "WindowCmd.hh" |
31 | #include "WindowMenuAccessor.hh" | ||
31 | 32 | ||
32 | #include "ClientMenu.hh" | 33 | #include "ClientMenu.hh" |
33 | #include "WorkspaceMenu.hh" | 34 | #include "WorkspaceMenu.hh" |
@@ -480,7 +481,7 @@ bool MenuCreator::createWindowMenuItem(const string &type, | |||
480 | static MenuContext context; | 481 | static MenuContext context; |
481 | 482 | ||
482 | if (type == "shade") { | 483 | if (type == "shade") { |
483 | static WindowAccessor<bool> res(&FluxboxWindow::isShaded, &FluxboxWindow::setShaded, false); | 484 | static WindowMenuAccessor<bool> res(&FluxboxWindow::isShaded, &FluxboxWindow::setShaded, false); |
484 | menu.insert(new FbTk::BoolMenuItem( | 485 | menu.insert(new FbTk::BoolMenuItem( |
485 | label.empty()?_FB_XTEXT(Windowmenu, Shade, "Shade", "Shade the window"):label, | 486 | label.empty()?_FB_XTEXT(Windowmenu, Shade, "Shade", "Shade the window"):label, |
486 | res)); | 487 | res)); |
@@ -504,7 +505,7 @@ bool MenuCreator::createWindowMenuItem(const string &type, | |||
504 | maximize_item->setCommand(3, maximize_horiz_cmd); | 505 | maximize_item->setCommand(3, maximize_horiz_cmd); |
505 | menu.insert(maximize_item); | 506 | menu.insert(maximize_item); |
506 | } else if (type == "iconify") { | 507 | } else if (type == "iconify") { |
507 | static WindowAccessor<bool> res(&FluxboxWindow::isIconic, &FluxboxWindow::setIconic, false); | 508 | static WindowMenuAccessor<bool> res(&FluxboxWindow::isIconic, &FluxboxWindow::setIconic, false); |
508 | menu.insert(new FbTk::BoolMenuItem( | 509 | menu.insert(new FbTk::BoolMenuItem( |
509 | label.empty() ? | 510 | label.empty() ? |
510 | _FB_XTEXT(Windowmenu, Iconify, | 511 | _FB_XTEXT(Windowmenu, Iconify, |
@@ -536,7 +537,7 @@ bool MenuCreator::createWindowMenuItem(const string &type, | |||
536 | label, raise_cmd); | 537 | label, raise_cmd); |
537 | 538 | ||
538 | } else if (type == "stick") { | 539 | } else if (type == "stick") { |
539 | static WindowAccessor<bool> res(&FluxboxWindow::isStuck, &FluxboxWindow::setStuck, false); | 540 | static WindowMenuAccessor<bool> res(&FluxboxWindow::isStuck, &FluxboxWindow::setStuck, false); |
540 | menu.insert(new FbTk::BoolMenuItem( | 541 | menu.insert(new FbTk::BoolMenuItem( |
541 | label.empty() ? | 542 | label.empty() ? |
542 | _FB_XTEXT(Windowmenu, Stick, | 543 | _FB_XTEXT(Windowmenu, Stick, |