aboutsummaryrefslogtreecommitdiff
path: root/src/IconButton.hh
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2008-01-05 01:39:19 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-01-05 01:39:19 (GMT)
commitac1bd7e0981222bf340ce7defb2bb8307d42a0a2 (patch)
treec8fb9c618184e7ac44f6138409cab3fab86b23e4 /src/IconButton.hh
parent60ba709c2f47cc2c7b877aef1b0f297b097853e5 (diff)
downloadfluxbox-ac1bd7e0981222bf340ce7defb2bb8307d42a0a2.zip
fluxbox-ac1bd7e0981222bf340ce7defb2bb8307d42a0a2.tar.bz2
update code to use ThemeProxy
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};