diff options
author | Henrik Kinnunen <fluxgen@fluxbox.org> | 2008-09-21 11:44:48 (GMT) |
---|---|---|
committer | Henrik Kinnunen <fluxgen@fluxbox.org> | 2008-09-21 11:44:48 (GMT) |
commit | 86819abab91cf3ea20540278d00bad6a6b86d4b0 (patch) | |
tree | c8020d6015f3607a67730c6873a062fe29743356 /src/WorkspaceNameTool.hh | |
parent | f5113e2ec1743d76ac414a020f617917c7933bb7 (diff) | |
download | fluxbox-86819abab91cf3ea20540278d00bad6a6b86d4b0.zip fluxbox-86819abab91cf3ea20540278d00bad6a6b86d4b0.tar.bz2 |
Changed current workspace signal in BScreen to use the new signal system
Diffstat (limited to 'src/WorkspaceNameTool.hh')
-rw-r--r-- | src/WorkspaceNameTool.hh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/WorkspaceNameTool.hh b/src/WorkspaceNameTool.hh index 0bdb528..bd034b7 100644 --- a/src/WorkspaceNameTool.hh +++ b/src/WorkspaceNameTool.hh | |||
@@ -27,6 +27,7 @@ | |||
27 | 27 | ||
28 | #include "FbTk/TextButton.hh" | 28 | #include "FbTk/TextButton.hh" |
29 | #include "FbTk/Observer.hh" | 29 | #include "FbTk/Observer.hh" |
30 | #include "FbTk/Signal.hh" | ||
30 | 31 | ||
31 | class BScreen; | 32 | class BScreen; |
32 | class ToolTheme; | 33 | class ToolTheme; |
@@ -35,7 +36,8 @@ namespace FbTk { | |||
35 | template <class T> class ThemeProxy; | 36 | template <class T> class ThemeProxy; |
36 | } | 37 | } |
37 | 38 | ||
38 | class WorkspaceNameTool: public ToolbarItem, public FbTk::Observer { | 39 | class WorkspaceNameTool: public ToolbarItem, public FbTk::Observer, |
40 | private FbTk::SignalTracker { | ||
39 | public: | 41 | public: |
40 | WorkspaceNameTool(const FbTk::FbWindow &parent, FbTk::ThemeProxy<ToolTheme> &theme, BScreen &screen); | 42 | WorkspaceNameTool(const FbTk::FbWindow &parent, FbTk::ThemeProxy<ToolTheme> &theme, BScreen &screen); |
41 | virtual ~WorkspaceNameTool(); | 43 | virtual ~WorkspaceNameTool(); |
@@ -59,6 +61,9 @@ public: | |||
59 | void parentMoved() { m_button.parentMoved(); } | 61 | void parentMoved() { m_button.parentMoved(); } |
60 | 62 | ||
61 | private: | 63 | private: |
64 | /// Called when workspace changed on \c screen | ||
65 | void updateForScreen(BScreen &screen); | ||
66 | |||
62 | void renderTheme(unsigned char alpha); | 67 | void renderTheme(unsigned char alpha); |
63 | void reRender(); | 68 | void reRender(); |
64 | void updateSizing(); | 69 | void updateSizing(); |