]> Dogcows Code - chaz/openbox/blobdiff - otk/button.cc
dont try free the widget's pixmap until it is no longer in use
[chaz/openbox] / otk / button.cc
index bc994b2fc0a4b5f3c3ea47f4a63bed24e3932fd5..04906fe517306f1e06baa4d5a0dbdf28c7934a2c 100644 (file)
@@ -22,11 +22,12 @@ Button::~Button()
 void Button::setStyle(Style *style)
 {
   FocusLabel::setStyle(style);
-  
-  setTexture(style->getButtonFocus());
-  setUnfocusTexture(style->getButtonUnfocus());
-  _pressed_focus_tx = style->getButtonPressedFocus();
-  _pressed_unfocus_tx = style->getButtonPressedUnfocus();
+
+  // XXX: do this again
+  //setTexture(style->getButtonFocus());
+  //setUnfocusTexture(style->getButtonUnfocus());
+  //_pressed_focus_tx = style->getButtonPressedFocus();
+  //_pressed_unfocus_tx = style->getButtonPressedUnfocus();
 }
 
 
@@ -51,13 +52,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;
This page took 0.023711 seconds and 4 git commands to generate.