aboutsummaryrefslogtreecommitdiff
path: root/src/SendToMenu.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/SendToMenu.cc')
-rw-r--r--src/SendToMenu.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/SendToMenu.cc b/src/SendToMenu.cc
index 44840dd..ae261b9 100644
--- a/src/SendToMenu.cc
+++ b/src/SendToMenu.cc
@@ -32,7 +32,7 @@
32#include "FbTk/MultiButtonMenuItem.hh" 32#include "FbTk/MultiButtonMenuItem.hh"
33#include "FbTk/Command.hh" 33#include "FbTk/Command.hh"
34 34
35class SendToCmd: public FbTk::Command { 35class SendToCmd: public FbTk::Command<void> {
36public: 36public:
37 SendToCmd(int workspace, bool follow): 37 SendToCmd(int workspace, bool follow):
38 m_workspace(workspace), 38 m_workspace(workspace),
@@ -78,8 +78,8 @@ void SendToMenu::update(FbTk::Subject *subj) {
78 BScreen *screen = Fluxbox::instance()->findScreen(screenNumber()); 78 BScreen *screen = Fluxbox::instance()->findScreen(screenNumber());
79 const BScreen::Workspaces &wlist = screen->getWorkspacesList(); 79 const BScreen::Workspaces &wlist = screen->getWorkspacesList();
80 for (size_t i = 0; i < wlist.size(); ++i) { 80 for (size_t i = 0; i < wlist.size(); ++i) {
81 FbTk::RefCount<FbTk::Command> sendto_cmd(new SendToCmd(i, false)); 81 FbTk::RefCount<FbTk::Command<void> > sendto_cmd(new SendToCmd(i, false));
82 FbTk::RefCount<FbTk::Command> sendto_follow_cmd(new SendToCmd(i, true)); 82 FbTk::RefCount<FbTk::Command<void> > sendto_follow_cmd(new SendToCmd(i, true));
83 83
84 FbTk::MultiButtonMenuItem* item = new FbTk::MultiButtonMenuItem(3, wlist[i]->name()); 84 FbTk::MultiButtonMenuItem* item = new FbTk::MultiButtonMenuItem(3, wlist[i]->name());
85 item->setCommand(1, sendto_cmd); 85 item->setCommand(1, sendto_cmd);