aboutsummaryrefslogtreecommitdiff
path: root/src/WinButton.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/WinButton.cc')
-rw-r--r--src/WinButton.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/WinButton.cc b/src/WinButton.cc
index 9ae2593..4802518 100644
--- a/src/WinButton.cc
+++ b/src/WinButton.cc
@@ -84,7 +84,7 @@ void WinButton::setPressedPixmap(Pixmap pm) {
84 overrode_pressed = false; 84 overrode_pressed = false;
85 } 85 }
86 86
87 FbTk::Button::setBackgroundPixmap(pm); 87 FbTk::Button::setPressedPixmap(pm);
88} 88}
89 89
90void WinButton::setPressedColor(const FbTk::Color &color) { 90void WinButton::setPressedColor(const FbTk::Color &color) {
@@ -236,5 +236,11 @@ void WinButton::clear() {
236} 236}
237 237
238void WinButton::update(FbTk::Subject *subj) { 238void WinButton::update(FbTk::Subject *subj) {
239 // pressed_pixmap isn't stateful in any current buttons, so no need
240 // to potentially override that. Just make sure background pm is ok
241 Pixmap my_pm = getBackgroundPixmap();
242 if (my_pm != None)
243 setBackgroundPixmap(my_pm);
244
239 clear(); 245 clear();
240} 246}