summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-12-03 19:02:36 +0000
committerDana Jansens <danakj@orodu.net>2002-12-03 19:02:36 +0000
commitf890d31d6bf41db5c565e4f1b25132a6df1bd044 (patch)
tree965a15038a18562a2fe6cb829cf1e5261eeeb0d2
parent948feddc2e0d3c846e1c4669681c475e99540a8b (diff)
make setStyle virtual
-rw-r--r--otk/button.hh2
-rw-r--r--otk/widget.hh2
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; }