diff options
author | Henrik Kinnunen <fluxgen@fluxbox.org> | 2008-09-18 20:27:16 (GMT) |
---|---|---|
committer | Henrik Kinnunen <fluxgen@fluxbox.org> | 2008-09-18 20:27:16 (GMT) |
commit | 2f4db57898920a3f17eaaa2586a39dad76d5c7e8 (patch) | |
tree | d107bebec3ddb8800970dfbc482c493d5e0187ab /src/SendToMenu.cc | |
parent | e4d4717703b365bc14f189bf36b3edb1e4430b90 (diff) | |
download | fluxbox-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.cc | 8 |
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 | ||
35 | class SendToCmd: public FbTk::Command<void> { | 36 | class SendToCmd: public FbTk::Command<void> { |
36 | public: | 37 | public: |
@@ -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 |