aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2004-01-09 11:59:10 (GMT)
committerfluxgen <fluxgen>2004-01-09 11:59:10 (GMT)
commit66c38184c6e376826c1f329d8f84d29768ea743d (patch)
tree16a7cea900934405d80a45d55d0e3932a7fa6044
parent7ec159759d0a2b4a544bf3f3d7f952d0342cadc7 (diff)
downloadfluxbox_paul-66c38184c6e376826c1f329d8f84d29768ea743d.zip
fluxbox_paul-66c38184c6e376826c1f329d8f84d29768ea743d.tar.bz2
detach from signals when screen is shuttingdown
-rw-r--r--src/IconbarTool.cc12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/IconbarTool.cc b/src/IconbarTool.cc
index 099d37b..b4a6c4f 100644
--- a/src/IconbarTool.cc
+++ b/src/IconbarTool.cc
@@ -20,7 +20,7 @@
20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21// DEALINGS IN THE SOFTWARE. 21// DEALINGS IN THE SOFTWARE.
22 22
23// $Id: IconbarTool.cc,v 1.26 2004/01/09 10:27:23 fluxgen Exp $ 23// $Id: IconbarTool.cc,v 1.27 2004/01/09 11:59:10 fluxgen Exp $
24 24
25#include "IconbarTool.hh" 25#include "IconbarTool.hh"
26 26
@@ -380,10 +380,16 @@ unsigned int IconbarTool::borderWidth() const {
380 return m_icon_container.borderWidth(); 380 return m_icon_container.borderWidth();
381} 381}
382 382
383void IconbarTool::update(FbTk::Subject *subj) { 383void IconbarTool::update(FbTk::Subject *subj) {
384 // ignore updates if we're shutting down 384 // ignore updates if we're shutting down
385 if (m_screen.isShuttingdown()) 385 if (m_screen.isShuttingdown()) {
386 m_screen.clientListSig().detach(this);
387 m_screen.iconListSig().detach(this);
388 m_screen.currentWorkspaceSig().detach(this);
389 if (!m_icon_list.empty())
390 deleteIcons();
386 return; 391 return;
392 }
387 393
388 m_icon_container.setAlignment(*m_rc_alignment); 394 m_icon_container.setAlignment(*m_rc_alignment);
389 // clamp to normal values 395 // clamp to normal values