aboutsummaryrefslogtreecommitdiff
path: root/src/SendToMenu.cc
diff options
context:
space:
mode:
authorHenrik Kinnunen <fluxgen@fluxbox.org>2008-09-18 20:27:16 (GMT)
committerHenrik Kinnunen <fluxgen@fluxbox.org>2008-09-18 20:27:16 (GMT)
commit2f4db57898920a3f17eaaa2586a39dad76d5c7e8 (patch)
treed107bebec3ddb8800970dfbc482c493d5e0187ab /src/SendToMenu.cc
parente4d4717703b365bc14f189bf36b3edb1e4430b90 (diff)
downloadfluxbox-2f4db57898920a3f17eaaa2586a39dad76d5c7e8.zip
fluxbox-2f4db57898920a3f17eaaa2586a39dad76d5c7e8.tar.bz2
Changed workspace count signal in BScreen to use the new signal system.
Diffstat (limited to 'src/SendToMenu.cc')
-rw-r--r--src/SendToMenu.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/SendToMenu.cc b/src/SendToMenu.cc
index 2362eb2..397ec81 100644
--- a/src/SendToMenu.cc
+++ b/src/SendToMenu.cc
@@ -31,6 +31,7 @@
31#include "FbTk/MultiButtonMenuItem.hh" 31#include "FbTk/MultiButtonMenuItem.hh"
32#include "FbTk/Command.hh" 32#include "FbTk/Command.hh"
33#include "FbTk/SimpleObserver.hh" 33#include "FbTk/SimpleObserver.hh"
34#include "FbTk/MemFun.hh"
34 35
35class SendToCmd: public FbTk::Command<void> { 36class SendToCmd: public FbTk::Command<void> {
36public: 37public:
@@ -55,9 +56,14 @@ SendToMenu::SendToMenu(BScreen &screen):
55 // workspace names signal 56 // workspace names signal
56 // current workspace signal 57 // current workspace signal
57 m_rebuildObs = makeObserver(*this, &SendToMenu::rebuildMenu); 58 m_rebuildObs = makeObserver(*this, &SendToMenu::rebuildMenu);
58 screen.workspaceCountSig().attach(m_rebuildObs); 59
59 screen.workspaceNamesSig().attach(m_rebuildObs); 60 screen.workspaceNamesSig().attach(m_rebuildObs);
60 screen.currentWorkspaceSig().attach(m_rebuildObs); 61 screen.currentWorkspaceSig().attach(m_rebuildObs);
62
63 // setup new signal system
64 join( screen.workspaceCountSig(),
65 FbTk::MemFun(*this, &SendToMenu::workspaceCountChange) );
66
61 // no title for this menu, it should be a submenu in the window menu. 67 // no title for this menu, it should be a submenu in the window menu.
62 disableTitle(); 68 disableTitle();
63 // setup menu items 69 // setup menu items