aboutsummaryrefslogtreecommitdiff
path: root/src/IconButton.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/IconButton.hh')
-rw-r--r--src/IconButton.hh10
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 @@
31class Focusable; 31class Focusable;
32class IconbarTheme; 32class IconbarTheme;
33 33
34namespace FbTk {
35template <class T> class ThemeProxy;
36}
37
34class IconButton: public FbTk::TextButton, public FbTk::Observer { 38class IconButton: public FbTk::TextButton, public FbTk::Observer {
35public: 39public:
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};