summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-02-04 15:04:30 +0000
committerDana Jansens <danakj@orodu.net>2003-02-04 15:04:30 +0000
commit9e6b0d5a8d0226232802bdece77665b167f98dae (patch)
tree0a1415da8f983ee8a177e2d80f31196110e1d105
parent0bc098ca56eb5109764b60ae8ed65ee2a22cf89f (diff)
update children first
-rw-r--r--otk/widget.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/otk/widget.cc b/otk/widget.cc
index 9708977d..c09ac486 100644
--- a/otk/widget.cc
+++ b/otk/widget.cc
@@ -404,16 +404,16 @@ void Widget::adjustVert(void)
void Widget::update()
{
+ WidgetList::iterator it = _children.begin(), end = _children.end();
+ for (; it != end; ++it)
+ (*it)->update();
+
if (_dirty) {
adjust();
render();
XClearWindow(**display, _window);
}
- WidgetList::iterator it = _children.begin(), end = _children.end();
- for (; it != end; ++it)
- (*it)->update();
-
_dirty = false;
}