diff options
author | markt <markt> | 2007-01-21 19:04:01 (GMT) |
---|---|---|
committer | markt <markt> | 2007-01-21 19:04:01 (GMT) |
commit | 240ebcb30a0b2a342fe1aad3985654fa54ff36fe (patch) | |
tree | b92376d4ae7774a77f7a964f44e7d06a328fc161 /src/FbWinFrame.cc | |
parent | 92537091003a9e259abff98e648e58c63a201bc1 (diff) | |
download | fluxbox_pavel-240ebcb30a0b2a342fe1aad3985654fa54ff36fe.zip fluxbox_pavel-240ebcb30a0b2a342fe1aad3985654fa54ff36fe.tar.bz2 |
allow transparency in window buttons
Diffstat (limited to 'src/FbWinFrame.cc')
-rw-r--r-- | src/FbWinFrame.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/FbWinFrame.cc b/src/FbWinFrame.cc index 5d191d0..c0a4a21 100644 --- a/src/FbWinFrame.cc +++ b/src/FbWinFrame.cc | |||
@@ -34,6 +34,7 @@ | |||
34 | #include "Screen.hh" | 34 | #include "Screen.hh" |
35 | 35 | ||
36 | #include "Container.hh" | 36 | #include "Container.hh" |
37 | #include "WinButton.hh" | ||
37 | 38 | ||
38 | #ifdef SHAPE | 39 | #ifdef SHAPE |
39 | #include "Shape.hh" | 40 | #include "Shape.hh" |
@@ -1490,6 +1491,12 @@ void FbWinFrame::init() { | |||
1490 | Setups upp background, pressed pixmap/color of the button to current theme | 1491 | Setups upp background, pressed pixmap/color of the button to current theme |
1491 | */ | 1492 | */ |
1492 | void FbWinFrame::applyButton(FbTk::Button &btn) { | 1493 | void FbWinFrame::applyButton(FbTk::Button &btn) { |
1494 | // need to update button first, or it might override this on theme change | ||
1495 | if (typeid(btn) == typeid(WinButton)) { | ||
1496 | WinButton *tmp = static_cast<WinButton *>(&btn); | ||
1497 | tmp->update(0); | ||
1498 | } | ||
1499 | |||
1493 | if (m_button_pressed_pm) | 1500 | if (m_button_pressed_pm) |
1494 | btn.setPressedPixmap(m_button_pressed_pm); | 1501 | btn.setPressedPixmap(m_button_pressed_pm); |
1495 | else | 1502 | else |