diff options
Diffstat (limited to 'src/SendToMenu.cc')
-rw-r--r-- | src/SendToMenu.cc | 6 |
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 | ||
35 | class SendToCmd: public FbTk::Command { | 35 | class SendToCmd: public FbTk::Command<void> { |
36 | public: | 36 | public: |
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); |