summaryrefslogtreecommitdiff
path: root/src/SendToMenu.cc
diff options
context:
space:
mode:
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