X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=otk%2Fbutton.cc;h=e7340d1b875a2452df2bc5614c61d164a3a7a1a5;hb=033e9843bcec8340c9e657fe0f0519f86075424b;hp=bc994b2fc0a4b5f3c3ea47f4a63bed24e3932fd5;hpb=8f8acc24933830d4f5784616b9b0c5896bde0b93;p=chaz%2Fopenbox diff --git a/otk/button.cc b/otk/button.cc index bc994b2f..e7340d1b 100644 --- a/otk/button.cc +++ b/otk/button.cc @@ -19,14 +19,14 @@ Button::~Button() } -void Button::setStyle(Style *style) +void Button::setStyle(RenderStyle *style) { FocusLabel::setStyle(style); - - 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(); } @@ -51,13 +51,13 @@ void Button::release(unsigned int mouse_button) _pressed = false; } -void Button::setTexture(Texture *texture) +void Button::setTexture(RenderTexture *texture) { FocusWidget::setTexture(texture); _unpr_focus_tx = texture; } -void Button::setUnfocusTexture(Texture *texture) +void Button::setUnfocusTexture(RenderTexture *texture) { FocusWidget::setUnfocusTexture(texture); _unpr_unfocus_tx = texture;