summaryrefslogtreecommitdiff
path: root/src/MenuCreator.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/MenuCreator.cc')
-rw-r--r--src/MenuCreator.cc7
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,