diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2008-01-11 07:41:22 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2008-01-11 07:41:22 (GMT) |
commit | 9f2f65a698c4cc71373a7fe9d73a0889e0d3487b (patch) | |
tree | 4ad67db771d73ea3c48f80a1244037fc9754edd2 /src/SendToMenu.cc | |
parent | 1f01d84c080d607a91eb417efcaf5e500b5f1d7e (diff) | |
download | fluxbox_pavel-9f2f65a698c4cc71373a7fe9d73a0889e0d3487b.zip fluxbox_pavel-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.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); |