From 70e2ab8017bc50fc1442f56f2b24ad18f4844686 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 22 Jan 2003 23:02:17 +0000 Subject: [PATCH] show recursive.. recursively --- otk/widget.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/otk/widget.cc b/otk/widget.cc index 036ed1c3..154fc92c 100644 --- a/otk/widget.cc +++ b/otk/widget.cc @@ -8,7 +8,7 @@ #include "display.hh" #include "assassin.hh" #include "screeninfo.hh" - +#include "focuslabel.hh" #include #include @@ -175,7 +175,7 @@ void Widget::show(bool recursive) if (recursive) { WidgetList::iterator it = _children.begin(), end = _children.end(); for (; it != end; ++it) - (*it)->show(); + (*it)->show(recursive); } XMapWindow(**display, _window); @@ -266,7 +266,9 @@ void Widget::render(void) _surface = new Surface(_screen, _rect.size()); display->renderControl(_screen)->drawBackground(*_surface, *_texture); - renderForeground(); + if (dynamic_cast(this)) + printf("IM A FOCUSLABEL RENDERING\n"); + renderForeground(); // for inherited types to render onto the _surface XSetWindowBackgroundPixmap(**display, _window, _surface->pixmap()); -- 2.39.2