]> Dogcows Code - chaz/openbox/blobdiff - otk/button.cc
otk using new render shit.. supposedly
[chaz/openbox] / otk / button.cc
index 04906fe517306f1e06baa4d5a0dbdf28c7934a2c..e7340d1b875a2452df2bc5614c61d164a3a7a1a5 100644 (file)
@@ -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();
 }
 
 
This page took 0.020359 seconds and 4 git commands to generate.