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/Screen.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/Screen.cc')
-rw-r--r-- | src/Screen.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Screen.cc b/src/Screen.cc index 23bc417..83bc92e 100644 --- a/src/Screen.cc +++ b/src/Screen.cc | |||
@@ -341,7 +341,6 @@ BScreen::BScreen(FbTk::ResourceManager &rm, | |||
341 | int scrn, int num_layers) : | 341 | int scrn, int num_layers) : |
342 | m_clientlist_sig(*this), // client signal | 342 | m_clientlist_sig(*this), // client signal |
343 | m_iconlist_sig(*this), // icon list signal | 343 | m_iconlist_sig(*this), // icon list signal |
344 | m_workspacecount_sig(*this), // workspace count signal | ||
345 | m_workspacenames_sig(*this), // workspace names signal | 344 | m_workspacenames_sig(*this), // workspace names signal |
346 | m_workspace_area_sig(*this), // workspace area signal | 345 | m_workspace_area_sig(*this), // workspace area signal |
347 | m_currentworkspace_sig(*this), // current workspace signal | 346 | m_currentworkspace_sig(*this), // current workspace signal |
@@ -1110,7 +1109,7 @@ int BScreen::addWorkspace() { | |||
1110 | } | 1109 | } |
1111 | 1110 | ||
1112 | saveWorkspaces(m_workspaces_list.size()); | 1111 | saveWorkspaces(m_workspaces_list.size()); |
1113 | workspaceCountSig().notify(); | 1112 | workspaceCountSig().emit( *this ); |
1114 | 1113 | ||
1115 | return m_workspaces_list.size(); | 1114 | return m_workspaces_list.size(); |
1116 | 1115 | ||
@@ -1140,7 +1139,7 @@ int BScreen::removeLastWorkspace() { | |||
1140 | m_workspaces_list.pop_back(); | 1139 | m_workspaces_list.pop_back(); |
1141 | 1140 | ||
1142 | saveWorkspaces(m_workspaces_list.size()); | 1141 | saveWorkspaces(m_workspaces_list.size()); |
1143 | workspaceCountSig().notify(); | 1142 | workspaceCountSig().emit( *this ); |
1144 | // must be deleted after we send notify!! | 1143 | // must be deleted after we send notify!! |
1145 | // so we dont get bad pointers somewhere | 1144 | // so we dont get bad pointers somewhere |
1146 | // while processing the notify signal | 1145 | // while processing the notify signal |