diff options
Diffstat (limited to 'otk/button.cc')
| -rw-r--r-- | otk/button.cc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/otk/button.cc b/otk/button.cc index 04906fe5..e7340d1b 100644 --- a/otk/button.cc +++ b/otk/button.cc @@ -19,15 +19,14 @@ Button::~Button() } -void Button::setStyle(Style *style) +void Button::setStyle(RenderStyle *style) { FocusLabel::setStyle(style); - // XXX: do this again - //setTexture(style->getButtonFocus()); - //setUnfocusTexture(style->getButtonUnfocus()); - //_pressed_focus_tx = style->getButtonPressedFocus(); - //_pressed_unfocus_tx = style->getButtonPressedUnfocus(); + setTexture(style->buttonUnpressFocusBackground()); + setUnfocusTexture(style->buttonUnpressUnfocusBackground()); + _pressed_focus_tx = style->buttonPressFocusBackground(); + _pressed_unfocus_tx = style->buttonPressUnfocusBackground(); } |
