aboutsummaryrefslogtreecommitdiff
path: root/src/GenericTool.cc
diff options
context:
space:
mode:
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