diff options
Diffstat (limited to 'src/IconbarTool.cc')
-rw-r--r-- | src/IconbarTool.cc | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/IconbarTool.cc b/src/IconbarTool.cc index 90d4728..09a4507 100644 --- a/src/IconbarTool.cc +++ b/src/IconbarTool.cc | |||
@@ -35,6 +35,7 @@ | |||
35 | #include "FocusControl.hh" | 35 | #include "FocusControl.hh" |
36 | #include "FbCommands.hh" | 36 | #include "FbCommands.hh" |
37 | #include "Layer.hh" | 37 | #include "Layer.hh" |
38 | #include "Debug.hh" | ||
38 | 39 | ||
39 | #include "FbTk/STLUtil.hh" | 40 | #include "FbTk/STLUtil.hh" |
40 | #include "FbTk/I18n.hh" | 41 | #include "FbTk/I18n.hh" |
@@ -57,11 +58,7 @@ | |||
57 | 58 | ||
58 | using std::string; | 59 | using std::string; |
59 | using std::list; | 60 | using std::list; |
60 | |||
61 | #ifdef DEBUG | ||
62 | using std::cerr; | ||
63 | using std::endl; | 61 | using std::endl; |
64 | #endif // DEBUG | ||
65 | 62 | ||
66 | namespace FbTk { | 63 | namespace FbTk { |
67 | 64 | ||
@@ -530,9 +527,8 @@ void IconbarTool::removeWindow(Focusable &win) { | |||
530 | IconMap::iterator it = m_icons.find(&win); | 527 | IconMap::iterator it = m_icons.find(&win); |
531 | if (it == m_icons.end()) | 528 | if (it == m_icons.end()) |
532 | return; | 529 | return; |
533 | #ifdef DEBUG | 530 | |
534 | cerr<<"IconbarTool::"<<__FUNCTION__<<"( 0x"<<&win<<" title = "<<win.title()<<") found!"<<endl; | 531 | fbdbg<<"IconbarTool::"<<__FUNCTION__<<"( 0x"<<&win<<" title = "<<win.title()<<") found!"<<endl; |
535 | #endif // DEBUG | ||
536 | 532 | ||
537 | // remove from list and render theme again | 533 | // remove from list and render theme again |
538 | IconButton *button = it->second; | 534 | IconButton *button = it->second; |
@@ -546,9 +542,9 @@ IconButton *IconbarTool::makeButton(Focusable &win) { | |||
546 | FluxboxWindow *fbwin = win.fbwindow(); | 542 | FluxboxWindow *fbwin = win.fbwindow(); |
547 | if (!fbwin || fbwin->clientList().empty()) | 543 | if (!fbwin || fbwin->clientList().empty()) |
548 | return 0; | 544 | return 0; |
549 | #ifdef DEBUG | 545 | |
550 | cerr<<"IconbarTool::addWindow(0x"<<&win<<" title = "<<win.title()<<")"<<endl; | 546 | fbdbg<<"IconbarTool::addWindow(0x"<<&win<<" title = "<<win.title()<<")"<<endl; |
551 | #endif // DEBUG | 547 | |
552 | IconButton *button = new IconButton(m_icon_container, m_focused_theme, | 548 | IconButton *button = new IconButton(m_icon_container, m_focused_theme, |
553 | m_unfocused_theme, win); | 549 | m_unfocused_theme, win); |
554 | 550 | ||