diff options
Diffstat (limited to 'src/IconButton.hh')
-rw-r--r-- | src/IconButton.hh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/IconButton.hh b/src/IconButton.hh index fdec547..a0cd82e 100644 --- a/src/IconButton.hh +++ b/src/IconButton.hh | |||
@@ -31,10 +31,14 @@ | |||
31 | class Focusable; | 31 | class Focusable; |
32 | class IconbarTheme; | 32 | class IconbarTheme; |
33 | 33 | ||
34 | namespace FbTk { | ||
35 | template <class T> class ThemeProxy; | ||
36 | } | ||
37 | |||
34 | class IconButton: public FbTk::TextButton, public FbTk::Observer { | 38 | class IconButton: public FbTk::TextButton, public FbTk::Observer { |
35 | public: | 39 | public: |
36 | IconButton(const FbTk::FbWindow &parent, IconbarTheme &theme, | 40 | IconButton(const FbTk::FbWindow &parent, |
37 | Focusable &window); | 41 | FbTk::ThemeProxy<IconbarTheme> &theme, Focusable &window); |
38 | virtual ~IconButton(); | 42 | virtual ~IconButton(); |
39 | 43 | ||
40 | void exposeEvent(XExposeEvent &event); | 44 | void exposeEvent(XExposeEvent &event); |
@@ -67,7 +71,7 @@ private: | |||
67 | FbTk::FbPixmap m_icon_mask; | 71 | FbTk::FbPixmap m_icon_mask; |
68 | bool m_use_pixmap; | 72 | bool m_use_pixmap; |
69 | 73 | ||
70 | IconbarTheme &m_theme; | 74 | FbTk::ThemeProxy<IconbarTheme> &m_theme; |
71 | // cached pixmaps | 75 | // cached pixmaps |
72 | FbTk::CachedPixmap m_focused_pm, m_unfocused_pm; | 76 | FbTk::CachedPixmap m_focused_pm, m_unfocused_pm; |
73 | }; | 77 | }; |