aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Button.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-06-05 12:42:31 (GMT)
committerfluxgen <fluxgen>2003-06-05 12:42:31 (GMT)
commit18de3a67dd27c82c5926ed1357593fcf707a5759 (patch)
treece66c694bcc7fc0ad48e29906181b4624c51ed84 /src/FbTk/Button.cc
parenta25551769e136b1bfaa7fabda93bc9635716dd6e (diff)
downloadfluxbox-18de3a67dd27c82c5926ed1357593fcf707a5759.zip
fluxbox-18de3a67dd27c82c5926ed1357593fcf707a5759.tar.bz2
pressed pixmap fix, we use old background pixmap if m_pressed_pm is null
Diffstat (limited to 'src/FbTk/Button.cc')
-rw-r--r--src/FbTk/Button.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/FbTk/Button.cc b/src/FbTk/Button.cc
index 1ef25d2..03b5283 100644
--- a/src/FbTk/Button.cc
+++ b/src/FbTk/Button.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: Button.cc,v 1.7 2003/05/07 11:35:22 fluxgen Exp $ 22// $Id: Button.cc,v 1.8 2003/06/05 12:42:31 fluxgen Exp $
23 23
24#include "Button.hh" 24#include "Button.hh"
25 25
@@ -109,7 +109,8 @@ void Button::hide() {
109} 109}
110 110
111void Button::buttonPressEvent(XButtonEvent &event) { 111void Button::buttonPressEvent(XButtonEvent &event) {
112 m_win.setBackgroundPixmap(m_pressed_pm); 112 if (m_pressed_pm != 0)
113 m_win.setBackgroundPixmap(m_pressed_pm);
113 m_pressed = true; 114 m_pressed = true;
114 clear(); 115 clear();
115 116