for (; str_it != str_end; ++str_it) {
(*str_it)->setWidth(str_width - _bevel_width);
- (*str_it)->update();
+ //(*str_it)->update();
}
}
for (; str_it != str_end; ++str_it) {
(*str_it)->setHeight(str_height - _bevel_width);
- (*str_it)->update();
+ //(*str_it)->update();
}
}
void OtkWidget::update(void)
{
+ OtkWidgetList::iterator it = _children.begin(), end = _children.end();
+ for (; it != end; ++it)
+ (*it)->update();
+
if (_dirty) {
adjust();
render();
XClearWindow(OBDisplay::display, _window);
}
+
_dirty = false;
}
virtual ~OtkWidget();
- void update(void);
+ virtual void update(void);
inline Window getWindow(void) const { return _window; }
inline const OtkWidget *getParent(void) const { return _parent; }