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/WorkspaceNameTool.hh | |
parent | 60ba709c2f47cc2c7b877aef1b0f297b097853e5 (diff) | |
download | fluxbox-ac1bd7e0981222bf340ce7defb2bb8307d42a0a2.zip fluxbox-ac1bd7e0981222bf340ce7defb2bb8307d42a0a2.tar.bz2 |
update code to use ThemeProxy
Diffstat (limited to 'src/WorkspaceNameTool.hh')
-rw-r--r-- | src/WorkspaceNameTool.hh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/WorkspaceNameTool.hh b/src/WorkspaceNameTool.hh index 4af9136..0bdb528 100644 --- a/src/WorkspaceNameTool.hh +++ b/src/WorkspaceNameTool.hh | |||
@@ -31,9 +31,13 @@ | |||
31 | class BScreen; | 31 | class BScreen; |
32 | class ToolTheme; | 32 | class ToolTheme; |
33 | 33 | ||
34 | namespace FbTk { | ||
35 | template <class T> class ThemeProxy; | ||
36 | } | ||
37 | |||
34 | class WorkspaceNameTool: public ToolbarItem, public FbTk::Observer { | 38 | class WorkspaceNameTool: public ToolbarItem, public FbTk::Observer { |
35 | public: | 39 | public: |
36 | WorkspaceNameTool(const FbTk::FbWindow &parent, ToolTheme &theme, BScreen &screen); | 40 | WorkspaceNameTool(const FbTk::FbWindow &parent, FbTk::ThemeProxy<ToolTheme> &theme, BScreen &screen); |
37 | virtual ~WorkspaceNameTool(); | 41 | virtual ~WorkspaceNameTool(); |
38 | 42 | ||
39 | void move(int x, int y); | 43 | void move(int x, int y); |
@@ -59,7 +63,7 @@ private: | |||
59 | void reRender(); | 63 | void reRender(); |
60 | void updateSizing(); | 64 | void updateSizing(); |
61 | FbTk::TextButton m_button; | 65 | FbTk::TextButton m_button; |
62 | const ToolTheme &m_theme; | 66 | const FbTk::ThemeProxy<ToolTheme> &m_theme; |
63 | BScreen &m_screen; | 67 | BScreen &m_screen; |
64 | Pixmap m_pixmap; | 68 | Pixmap m_pixmap; |
65 | }; | 69 | }; |