make setStyle virtual

This commit is contained in:
Dana Jansens 2002-12-03 19:02:36 +00:00
parent 948feddc2e
commit f890d31d6b
2 changed files with 2 additions and 2 deletions

View file

@ -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:

View file

@ -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; }