diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-12-03 19:01:41 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-12-03 19:01:41 +0000 |
| commit | 948feddc2e0d3c846e1c4669681c475e99540a8b (patch) | |
| tree | eaebe5c974c8e45c550a826401ec604f250c210c /otk/button.cc | |
| parent | bf95658de24b699138363ad758d9f59517dbe0e9 (diff) | |
update the textures being used on setStyle() calls
Diffstat (limited to 'otk/button.cc')
| -rw-r--r-- | otk/button.cc | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/otk/button.cc b/otk/button.cc index 8dea882e..fd23a569 100644 --- a/otk/button.cc +++ b/otk/button.cc @@ -12,15 +12,24 @@ 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() +{ +} + + +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) { |
