diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2008-01-05 01:39:19 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2008-01-05 01:39:19 (GMT) |
commit | ac1bd7e0981222bf340ce7defb2bb8307d42a0a2 (patch) | |
tree | c8fb9c618184e7ac44f6138409cab3fab86b23e4 /src/IconButton.hh | |
parent | 60ba709c2f47cc2c7b877aef1b0f297b097853e5 (diff) | |
download | fluxbox-ac1bd7e0981222bf340ce7defb2bb8307d42a0a2.zip fluxbox-ac1bd7e0981222bf340ce7defb2bb8307d42a0a2.tar.bz2 |
update code to use ThemeProxy
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 | }; |