summaryrefslogtreecommitdiff
path: root/src/WorkspaceNameTool.hh
diff options
context:
space:
mode:
authorHenrik Kinnunen <fluxgen@fluxbox.org>2008-09-21 11:44:48 (GMT)
committerHenrik Kinnunen <fluxgen@fluxbox.org>2008-09-21 11:44:48 (GMT)
commit86819abab91cf3ea20540278d00bad6a6b86d4b0 (patch)
treec8020d6015f3607a67730c6873a062fe29743356 /src/WorkspaceNameTool.hh
parentf5113e2ec1743d76ac414a020f617917c7933bb7 (diff)
downloadfluxbox_lack-86819abab91cf3ea20540278d00bad6a6b86d4b0.zip
fluxbox_lack-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.hh7
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
31class BScreen; 32class BScreen;
32class ToolTheme; 33class ToolTheme;
@@ -35,7 +36,8 @@ namespace FbTk {
35template <class T> class ThemeProxy; 36template <class T> class ThemeProxy;
36} 37}
37 38
38class WorkspaceNameTool: public ToolbarItem, public FbTk::Observer { 39class WorkspaceNameTool: public ToolbarItem, public FbTk::Observer,
40 private FbTk::SignalTracker {
39public: 41public:
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
61private: 63private:
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();