aboutsummaryrefslogtreecommitdiff
path: root/src/GenericTool.cc
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-04-29 08:52:28 (GMT)
committerPavel Labath <pavelo@centrum.sk>2011-05-10 11:00:45 (GMT)
commitf7d7dfd2a8047207dbe90bc77592c25acf4ca15c (patch)
tree46eb8596d15fb0450f07e3e5d58e2c5449c4c020 /src/GenericTool.cc
parent54230c9a4474baf4f1c56773992212093e222349 (diff)
downloadfluxbox-f7d7dfd2a8047207dbe90bc77592c25acf4ca15c.zip
fluxbox-f7d7dfd2a8047207dbe90bc77592c25acf4ca15c.tar.bz2
Convert FbTk::Theme::reconfigSig and friends to the new Signal system
I removed the const versions of reconfigSig() in the process since FbTk::Signal has no const methods anyway.
Diffstat (limited to 'src/GenericTool.cc')
-rw-r--r--src/GenericTool.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/GenericTool.cc b/src/GenericTool.cc
index 41388ce..f589f4c 100644
--- a/src/GenericTool.cc
+++ b/src/GenericTool.cc
@@ -21,6 +21,7 @@
21 21
22#include "GenericTool.hh" 22#include "GenericTool.hh"
23#include "FbTk/FbWindow.hh" 23#include "FbTk/FbWindow.hh"
24#include "FbTk/MemFun.hh"
24#include "ToolTheme.hh" 25#include "ToolTheme.hh"
25 26
26#include <string> 27#include <string>
@@ -31,7 +32,7 @@ GenericTool::GenericTool(FbTk::FbWindow *new_window, ToolbarItem::Type type,
31 m_window(new_window), 32 m_window(new_window),
32 m_theme(theme) { 33 m_theme(theme) {
33 34
34 theme.reconfigSig().attach(this); 35 m_tracker.join(theme.reconfigSig(), FbTk::MemFun(*this, &GenericTool::themeReconfigured));
35 36
36 if (new_window == 0) 37 if (new_window == 0)
37 throw std::string("GenericTool: Error! Tried to create a tool with window = 0"); 38 throw std::string("GenericTool: Error! Tried to create a tool with window = 0");
@@ -80,7 +81,7 @@ void GenericTool::renderTheme(int alpha) {
80 m_window->clear(); 81 m_window->clear();
81} 82}
82 83
83void GenericTool::update(FbTk::Subject *subj) { 84void GenericTool::themeReconfigured() {
84 m_window->clear(); 85 m_window->clear();
85} 86}
86 87