_children.erase(it);
}
+void OtkWidget::setStyle(Style *style)
+{
+ assert(style);
+ _style = style;
+ _dirty = true;
+ OtkWidgetList::iterator it, end = _children.end();
+ for (it = _children.begin(); it != end; ++it)
+ (*it)->setStyle(style);
+}
+
+
void OtkWidget::setEventDispatcher(OtkEventDispatcher *disp)
{
if (_event_dispatcher)
void setDirection(Direction dir) { _direction = dir; }
inline Style *getStyle(void) const { return _style; }
- virtual void setStyle(Style *style) { assert(style); _style = style; }
+ virtual void setStyle(Style *style);
inline OtkEventDispatcher *getEventDispatcher(void)
{ return _event_dispatcher; }