diff options
Diffstat (limited to 'src/IconButton.cc')
-rw-r--r-- | src/IconButton.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/IconButton.cc b/src/IconButton.cc index e3aae47..b884fbb 100644 --- a/src/IconButton.cc +++ b/src/IconButton.cc | |||
@@ -24,6 +24,7 @@ | |||
24 | 24 | ||
25 | #include "IconButton.hh" | 25 | #include "IconButton.hh" |
26 | #include "IconbarTool.hh" | 26 | #include "IconbarTool.hh" |
27 | #include "IconbarTheme.hh" | ||
27 | 28 | ||
28 | #include "Screen.hh" | 29 | #include "Screen.hh" |
29 | #include "Focusable.hh" | 30 | #include "Focusable.hh" |
@@ -46,13 +47,14 @@ | |||
46 | #endif // SHAPE | 47 | #endif // SHAPE |
47 | 48 | ||
48 | 49 | ||
49 | IconButton::IconButton(const FbTk::FbWindow &parent, FbTk::Font &font, | 50 | IconButton::IconButton(const FbTk::FbWindow &parent, IconbarTheme &theme, |
50 | Focusable &win): | 51 | Focusable &win): |
51 | FbTk::TextButton(parent, font, win.title()), | 52 | FbTk::TextButton(parent, theme.focusedText().font(), win.title()), |
52 | m_win(win), | 53 | m_win(win), |
53 | m_icon_window(*this, 1, 1, 1, 1, | 54 | m_icon_window(*this, 1, 1, 1, 1, |
54 | ExposureMask | ButtonPressMask | ButtonReleaseMask), | 55 | ExposureMask | ButtonPressMask | ButtonReleaseMask), |
55 | m_use_pixmap(true) { | 56 | m_use_pixmap(true), |
57 | m_theme(theme) { | ||
56 | 58 | ||
57 | m_win.titleSig().attach(this); | 59 | m_win.titleSig().attach(this); |
58 | 60 | ||