diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-01-22 23:02:17 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-01-22 23:02:17 +0000 |
| commit | 70e2ab8017bc50fc1442f56f2b24ad18f4844686 (patch) | |
| tree | 68c315002d24a6e6a4cb67e732931c911bf3fc90 | |
| parent | 033e9843bcec8340c9e657fe0f0519f86075424b (diff) | |
show recursive.. recursively
| -rw-r--r-- | otk/widget.cc | 8 |
1 files 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 <algorithm> #include <iostream> @@ -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<FocusLabel*>(this)) + printf("IM A FOCUSLABEL RENDERING\n"); + renderForeground(); // for inherited types to render onto the _surface XSetWindowBackgroundPixmap(**display, _window, _surface->pixmap()); |
