aboutsummaryrefslogtreecommitdiff
path: root/src/IconbarTool.cc
diff options
context:
space:
mode:
authorHenrik Kinnunen <fluxgen@fluxbox.org>2010-03-17 15:35:07 (GMT)
committerHenrik Kinnunen <fluxgen@fluxbox.org>2010-03-17 15:35:07 (GMT)
commitce0b41c8472135898a553d6d649d852beb80cffb (patch)
tree8cca2f6d8795c19c86ab70fa22e9c724e5f4453b /src/IconbarTool.cc
parent7a86dad21b1d50b35857496c165e4e85cc0d2bd3 (diff)
downloadfluxbox-ce0b41c8472135898a553d6d649d852beb80cffb.zip
fluxbox-ce0b41c8472135898a553d6d649d852beb80cffb.tar.bz2
Changed #ifdef DEBUG ... cerr << to using fbdbg.
This will reduce the number of #ifdef DEBUG for simple debug messages. include "Debug.hh" and use fbdbg instead of cerr for debug.
Diffstat (limited to 'src/IconbarTool.cc')
-rw-r--r--src/IconbarTool.cc16
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
58using std::string; 59using std::string;
59using std::list; 60using std::list;
60
61#ifdef DEBUG
62using std::cerr;
63using std::endl; 61using std::endl;
64#endif // DEBUG
65 62
66namespace FbTk { 63namespace 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