X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=otk%2Fbutton.cc;h=9f3930873e20453bc50969c26ed474a28039de7b;hb=723739dafe91a156fef527f3b53a483195695cf1;hp=fd23a5698d74d54ff15851df3c25255834459025;hpb=948feddc2e0d3c846e1c4669681c475e99540a8b;p=chaz%2Fopenbox diff --git a/otk/button.cc b/otk/button.cc index fd23a569..9f393087 100644 --- a/otk/button.cc +++ b/otk/button.cc @@ -12,7 +12,6 @@ OtkButton::OtkButton(OtkWidget *parent) : OtkFocusLabel(parent), _pressed(false), _pressed_focus_tx(0), _pressed_unfocus_tx(0), _unpr_focus_tx(0), _unpr_unfocus_tx(0) { - setStyle(getStyle()); } OtkButton::~OtkButton() @@ -24,10 +23,10 @@ void OtkButton::setStyle(Style *style) { OtkFocusLabel::setStyle(style); - setTexture(getStyle()->getButtonFocus()); - setUnfocusTexture(getStyle()->getButtonUnfocus()); - _pressed_focus_tx = getStyle()->getButtonPressedFocus(); - _pressed_unfocus_tx = getStyle()->getButtonPressedUnfocus(); + setTexture(style->getButtonFocus()); + setUnfocusTexture(style->getButtonUnfocus()); + _pressed_focus_tx = style->getButtonPressedFocus(); + _pressed_unfocus_tx = style->getButtonPressedUnfocus(); }