diff options
author | Henrik Kinnunen <fluxgen@fluxbox.org> | 2008-09-21 13:25:47 (GMT) |
---|---|---|
committer | Henrik Kinnunen <fluxgen@fluxbox.org> | 2008-09-21 13:25:47 (GMT) |
commit | 71674739ec6de376273cb3c5b938da132e7035c5 (patch) | |
tree | abd6e295067347b6f95622c9ed1a00c6396dc314 /src/SendToMenu.cc | |
parent | 86819abab91cf3ea20540278d00bad6a6b86d4b0 (diff) | |
download | fluxbox-71674739ec6de376273cb3c5b938da132e7035c5.zip fluxbox-71674739ec6de376273cb3c5b938da132e7035c5.tar.bz2 |
Changed workspace names signal in BScreen to use the new signal system
Diffstat (limited to 'src/SendToMenu.cc')
-rw-r--r-- | src/SendToMenu.cc | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/SendToMenu.cc b/src/SendToMenu.cc index ac7612b..0aa1c31 100644 --- a/src/SendToMenu.cc +++ b/src/SendToMenu.cc | |||
@@ -55,17 +55,16 @@ SendToMenu::SendToMenu(BScreen &screen): | |||
55 | // workspace count signal | 55 | // workspace count signal |
56 | // workspace names signal | 56 | // workspace names signal |
57 | // current workspace signal | 57 | // current workspace signal |
58 | m_rebuildObs = makeObserver(*this, &SendToMenu::rebuildMenu); | ||
59 | 58 | ||
60 | screen.workspaceNamesSig().attach(m_rebuildObs); | 59 | join(screen.workspaceNamesSig(), |
60 | FbTk::MemFun(*this, &SendToMenu::rebuildMenuForScreen)); | ||
61 | 61 | ||
62 | // setup new signal system | 62 | join(screen.currentWorkspaceSig(), |
63 | join( screen.currentWorkspaceSig(), | 63 | FbTk::MemFun(*this, &SendToMenu::rebuildMenuForScreen)); |
64 | FbTk::MemFun(*this, &SendToMenu::rebuildMenuForScreen)); | ||
65 | 64 | ||
66 | // setup new signal system | 65 | // setup new signal system |
67 | join( screen.workspaceCountSig(), | 66 | join(screen.workspaceCountSig(), |
68 | FbTk::MemFun(*this, &SendToMenu::rebuildMenuForScreen)); | 67 | FbTk::MemFun(*this, &SendToMenu::rebuildMenuForScreen)); |
69 | 68 | ||
70 | // no title for this menu, it should be a submenu in the window menu. | 69 | // no title for this menu, it should be a submenu in the window menu. |
71 | disableTitle(); | 70 | disableTitle(); |
@@ -74,7 +73,7 @@ SendToMenu::SendToMenu(BScreen &screen): | |||
74 | } | 73 | } |
75 | 74 | ||
76 | SendToMenu::~SendToMenu() { | 75 | SendToMenu::~SendToMenu() { |
77 | delete m_rebuildObs; | 76 | |
78 | } | 77 | } |
79 | 78 | ||
80 | void SendToMenu::rebuildMenu() { | 79 | void SendToMenu::rebuildMenu() { |