From f890d31d6bf41db5c565e4f1b25132a6df1bd044 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 3 Dec 2002 19:02:36 +0000 Subject: [PATCH] make setStyle virtual --- otk/button.hh | 2 +- otk/widget.hh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.45.2