diff --git a/otk/button.hh b/otk/button.hh index 2d983fb3..5924e9b0 100644 --- a/otk/button.hh +++ b/otk/button.hh @@ -32,7 +32,7 @@ public: void buttonPressHandler(const XButtonEvent &e); void buttonReleaseHandler(const XButtonEvent &e); - void setStyle(Style *style); + virtual void setStyle(Style *style); private: diff --git a/otk/widget.hh b/otk/widget.hh index 80d269da..2e58cc99 100644 --- a/otk/widget.hh +++ b/otk/widget.hh @@ -97,7 +97,7 @@ public: void setDirection(Direction dir) { _direction = dir; } inline Style *getStyle(void) const { return _style; } - void setStyle(Style *style) { assert(style); _style = style; } + virtual void setStyle(Style *style) { assert(style); _style = style; } inline OtkEventDispatcher *getEventDispatcher(void) { return _event_dispatcher; }