]> Dogcows Code - chaz/openbox/blobdiff - otk/button.cc
oops adding the other OB Widgets
[chaz/openbox] / otk / button.cc
index 8dea882e461c41b07405be9f6d4f868a27242882..2b17458206432bad0e1d4714c5c939fb40f61395 100644 (file)
@@ -12,15 +12,23 @@ OtkButton::OtkButton(OtkWidget *parent)
   : OtkFocusLabel(parent), _pressed(false), _pressed_focus_tx(0),
     _pressed_unfocus_tx(0), _unpr_focus_tx(0), _unpr_unfocus_tx(0)
 {
+}
+
+OtkButton::~OtkButton()
+{
+}
+
+
+void OtkButton::setStyle(Style *style)
+{
+  OtkFocusLabel::setStyle(style);
+  
   setTexture(getStyle()->getButtonFocus());
   setUnfocusTexture(getStyle()->getButtonUnfocus());
   _pressed_focus_tx = getStyle()->getButtonPressedFocus();
   _pressed_unfocus_tx = getStyle()->getButtonPressedUnfocus();
 }
 
-OtkButton::~OtkButton()
-{
-}
 
 void OtkButton::press(unsigned int mouse_button)
 {
This page took 0.025683 seconds and 4 git commands to generate.