diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-02-08 08:59:24 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-02-08 08:59:24 +0000 |
| commit | ef231de58a738c83bf505e184fbafa9077f7452e (patch) | |
| tree | ffdfa60aea48424d925393efea433b1313b6e9a7 /otk/button.cc | |
| parent | ee9eaed6cd48db249711912133758679a029b5b1 (diff) | |
mad optimizations
Diffstat (limited to 'otk/button.cc')
| -rw-r--r-- | otk/button.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/otk/button.cc b/otk/button.cc index 1e128784..c0f48100 100644 --- a/otk/button.cc +++ b/otk/button.cc @@ -12,7 +12,6 @@ Button::Button(Widget *parent) : Label(parent), _pressed(false) { - setHighlighted(false); setHorizontalJustify(RenderStyle::CenterJustify); setVerticalJustify(RenderStyle::CenterJustify); styleChanged(*RenderStyle::style(screen())); @@ -70,7 +69,7 @@ void Button::styleChanged(const RenderStyle &style) _texture = style.buttonUnpressUnfocusBackground(); _forecolor = style.buttonUnfocusColor(); } - Widget::styleChanged(style); + refresh(); } } |
