diff options
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() { |