]> Dogcows Code - chaz/openbox/blobdiff - otk/button.cc
support net_wm_strut's! nothing to do with them yet however
[chaz/openbox] / otk / button.cc
index fd23a5698d74d54ff15851df3c25255834459025..9f3930873e20453bc50969c26ed474a28039de7b 100644 (file)
@@ -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();
 }
 
 
This page took 0.023559 seconds and 4 git commands to generate.