diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2008-01-04 09:06:38 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2008-01-04 09:06:38 (GMT) |
commit | 60ba709c2f47cc2c7b877aef1b0f297b097853e5 (patch) | |
tree | c722b0dacce3c7c0b1df7bf6ccb2b322bc819f6b /src/WorkspaceNameTheme.hh | |
parent | b20b243b48683d209f8134b46c6dcea4df94b6cc (diff) | |
download | fluxbox-60ba709c2f47cc2c7b877aef1b0f297b097853e5.zip fluxbox-60ba709c2f47cc2c7b877aef1b0f297b097853e5.tar.bz2 |
add a level of indirection to themes
Diffstat (limited to 'src/WorkspaceNameTheme.hh')
-rw-r--r-- | src/WorkspaceNameTheme.hh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/WorkspaceNameTheme.hh b/src/WorkspaceNameTheme.hh index 2e4dc42..860f6ec 100644 --- a/src/WorkspaceNameTheme.hh +++ b/src/WorkspaceNameTheme.hh | |||
@@ -25,7 +25,8 @@ | |||
25 | 25 | ||
26 | #include "ToolTheme.hh" | 26 | #include "ToolTheme.hh" |
27 | 27 | ||
28 | class WorkspaceNameTheme:public ToolTheme { | 28 | class WorkspaceNameTheme: public ToolTheme, |
29 | public FbTk::ThemeProxy<WorkspaceNameTheme> { | ||
29 | public: | 30 | public: |
30 | WorkspaceNameTheme(int screen_num, | 31 | WorkspaceNameTheme(int screen_num, |
31 | const std::string &name, | 32 | const std::string &name, |
@@ -44,6 +45,13 @@ public: | |||
44 | 45 | ||
45 | return ToolTheme::fallback(item); | 46 | return ToolTheme::fallback(item); |
46 | } | 47 | } |
48 | |||
49 | virtual FbTk::Subject &reconfigSig() { return FbTk::Theme::reconfigSig(); } | ||
50 | virtual const FbTk::Subject &reconfigSig() const { return FbTk::Theme::reconfigSig(); } | ||
51 | |||
52 | virtual WorkspaceNameTheme *operator ->() { return this; } | ||
53 | virtual const WorkspaceNameTheme *operator ->() const { return this; } | ||
54 | |||
47 | }; | 55 | }; |
48 | 56 | ||
49 | #endif // WORKSPACENAMETHEME_HH | 57 | #endif // WORKSPACENAMETHEME_HH |