aboutsummaryrefslogtreecommitdiff
path: root/src/SendToMenu.cc
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2008-01-11 07:41:22 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-01-11 07:41:22 (GMT)
commit9f2f65a698c4cc71373a7fe9d73a0889e0d3487b (patch)
tree4ad67db771d73ea3c48f80a1244037fc9754edd2 /src/SendToMenu.cc
parent1f01d84c080d607a91eb417efcaf5e500b5f1d7e (diff)
downloadfluxbox-9f2f65a698c4cc71373a7fe9d73a0889e0d3487b.zip
fluxbox-9f2f65a698c4cc71373a7fe9d73a0889e0d3487b.tar.bz2
make FbTk::Command a template class, split parsing information out of ObjectRegistry
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);