From: Dana Jansens Date: Thu, 23 Jan 2003 04:20:08 +0000 (+0000) Subject: remove debug printfs X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=ff3bb7566b76ff28e72e64054908145854b4454d;p=chaz%2Fopenbox remove debug printfs --- diff --git a/otk/rendercolor.cc b/otk/rendercolor.cc index 81aef261..be9521bf 100644 --- a/otk/rendercolor.cc +++ b/otk/rendercolor.cc @@ -53,8 +53,6 @@ void RenderColor::create() { unsigned long color = _blue | _green << 8 | _red << 16; - printf("CREATE COLOR: %lx\n", color); - // try get a gc from the cache CacheItem *item = _cache[_screen][color]; @@ -101,8 +99,6 @@ RenderColor::~RenderColor() CacheItem *item = _cache[_screen][color]; assert(item); // it better be in the cache ... - printf("DESTROY COLOR: %lx %d\n", color, item->count); - if (--item->count <= 0) { // remove from the cache XFreeGC(**display, _gc); diff --git a/otk/widget.cc b/otk/widget.cc index 154fc92c..69a86237 100644 --- a/otk/widget.cc +++ b/otk/widget.cc @@ -259,15 +259,12 @@ void Widget::ungrabKeyboard(void) void Widget::render(void) { if (!_texture) return; - printf("RENDER\n"); Surface *s = _surface; // save the current surface _surface = new Surface(_screen, _rect.size()); display->renderControl(_screen)->drawBackground(*_surface, *_texture); - if (dynamic_cast(this)) - printf("IM A FOCUSLABEL RENDERING\n"); renderForeground(); // for inherited types to render onto the _surface XSetWindowBackgroundPixmap(**display, _window, _surface->pixmap()); diff --git a/src/buttonwidget.cc b/src/buttonwidget.cc index 534bdc84..eb864ba2 100644 --- a/src/buttonwidget.cc +++ b/src/buttonwidget.cc @@ -77,19 +77,12 @@ void ButtonWidget::setStyle(otk::RenderStyle *style) } -void ButtonWidget::update() -{ - printf("ButtonWidget::update()\n"); - otk::Widget::update(); -} - void ButtonWidget::renderForeground() { otk::PixmapMask *pm; int width; bool draw = _dirty; - printf("ButtonWidget::renderForeground()\n"); otk::Widget::renderForeground(); if (draw) { diff --git a/src/buttonwidget.hh b/src/buttonwidget.hh index 5a994a9b..a888a3d5 100644 --- a/src/buttonwidget.hh +++ b/src/buttonwidget.hh @@ -22,7 +22,6 @@ public: virtual void adjust(); - virtual void update(); virtual void renderForeground(); virtual void focus(); diff --git a/src/labelwidget.cc b/src/labelwidget.cc index becb62ed..020e8b73 100644 --- a/src/labelwidget.cc +++ b/src/labelwidget.cc @@ -67,18 +67,10 @@ void LabelWidget::unfocus() } -void LabelWidget::update() -{ - printf("LabelWidget::update()\n"); - otk::Widget::update(); -} - - void LabelWidget::renderForeground() { bool draw = _dirty; - printf("LabelWidget::renderForeground()\n"); otk::Widget::renderForeground(); if (draw) { diff --git a/src/labelwidget.hh b/src/labelwidget.hh index 6373e1d3..81d350c6 100644 --- a/src/labelwidget.hh +++ b/src/labelwidget.hh @@ -31,8 +31,6 @@ public: virtual void focus(); virtual void unfocus(); - virtual void update(); - virtual void renderForeground(); inline const otk::ustring &text() const { return _text; }