aboutsummaryrefslogtreecommitdiff
path: root/src/FbWinFrame.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbWinFrame.cc')
-rw-r--r--src/FbWinFrame.cc7
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*/
1492void FbWinFrame::applyButton(FbTk::Button &btn) { 1493void 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