aboutsummaryrefslogtreecommitdiff
path: root/src/WinButton.cc
diff options
context:
space:
mode:
authorsimonb <simonb>2005-04-13 14:39:25 (GMT)
committersimonb <simonb>2005-04-13 14:39:25 (GMT)
commitddcecec37e0ea559c9292423a257b47c423ddb9e (patch)
tree650ca599e242e31193c298b3bceac4b3f43ac949 /src/WinButton.cc
parent88c66f0687d2a9e2018f22407b2587dc4d87d012 (diff)
downloadfluxbox-ddcecec37e0ea559c9292423a257b47c423ddb9e.zip
fluxbox-ddcecec37e0ea559c9292423a257b47c423ddb9e.tar.bz2
fix a few small bugs from recent big patch
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}