OtkFocusWidget::update();
}
-void OtkButton::expose(const XExposeEvent &e)
+bool OtkButton::expose(const XExposeEvent &e)
{
_dirty = true;
- OtkFocusWidget::expose(e);
+ return OtkFocusWidget::expose(e);
}
}
void release(void);
virtual void update(void);
- virtual void expose(const XExposeEvent &e);
+ virtual bool expose(const XExposeEvent &e);
private:
_children.erase(it);
}
-void OtkWidget::expose(const XExposeEvent &e)
+bool OtkWidget::expose(const XExposeEvent &e)
{
if (e.window == _window) {
_dirty = true;
update();
+ return true;
} else {
OtkWidgetList::iterator it = _children.begin(), end = _children.end();
for (; it != end; ++it)
- (*it)->expose(e);
+ if ((*it)->expose(e))
+ return true;
}
+ return false;
}
}
virtual void update(void);
- virtual void expose(const XExposeEvent &e);
+ virtual bool expose(const XExposeEvent &e);
inline Window getWindow(void) const { return _window; }
inline const OtkWidget *getParent(void) const { return _parent; }