aboutsummaryrefslogtreecommitdiff
path: root/src/FocusableTheme.hh
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-05-03 10:49:05 (GMT)
committerPavel Labath <pavelo@centrum.sk>2011-05-10 11:00:45 (GMT)
commit0775350fee345e37fb59835dda4d85664346b606 (patch)
tree390af82593f92e11033ca2a2590a5ec7b7a3d14c /src/FocusableTheme.hh
parentbef2039d2c5a31ab9f974059d991557276647af1 (diff)
downloadfluxbox-0775350fee345e37fb59835dda4d85664346b606.zip
fluxbox-0775350fee345e37fb59835dda4d85664346b606.tar.bz2
Last round of simplification of Signal/Slot classes
- merged all the common stuff from 0,1,2,3 argument versions into one common base class - removed ReturnType template parameter as it was instantiated with "void" everywhere and the current ignores the return value of the callbacks anyway
Diffstat (limited to 'src/FocusableTheme.hh')
-rw-r--r--src/FocusableTheme.hh10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/FocusableTheme.hh b/src/FocusableTheme.hh
index 6643b43..d379c15 100644
--- a/src/FocusableTheme.hh
+++ b/src/FocusableTheme.hh
@@ -36,13 +36,13 @@ public:
36 m_win(win), m_focused_theme(focused), m_unfocused_theme(unfocused) { 36 m_win(win), m_focused_theme(focused), m_unfocused_theme(unfocused) {
37 37
38 m_signals.join(m_win.focusSig(), 38 m_signals.join(m_win.focusSig(),
39 FbTk::MemFunIgnoreArgs(m_reconfig_sig, &FbTk::Signal<void>::emit)); 39 FbTk::MemFunIgnoreArgs(m_reconfig_sig, &FbTk::Signal<>::emit));
40 40
41 m_win.attentionSig().attach(this); 41 m_win.attentionSig().attach(this);
42 m_signals.join(m_focused_theme.reconfigSig(), 42 m_signals.join(m_focused_theme.reconfigSig(),
43 FbTk::MemFun(m_reconfig_sig, &FbTk::Signal<void>::emit)); 43 FbTk::MemFun(m_reconfig_sig, &FbTk::Signal<>::emit));
44 m_signals.join(m_unfocused_theme.reconfigSig(), 44 m_signals.join(m_unfocused_theme.reconfigSig(),
45 FbTk::MemFun(m_reconfig_sig, &FbTk::Signal<void>::emit)); 45 FbTk::MemFun(m_reconfig_sig, &FbTk::Signal<>::emit));
46 } 46 }
47 47
48 Focusable &win() { return m_win; } 48 Focusable &win() { return m_win; }
@@ -54,7 +54,7 @@ public:
54 FbTk::ThemeProxy<BaseTheme> &unfocusedTheme() { return m_unfocused_theme; } 54 FbTk::ThemeProxy<BaseTheme> &unfocusedTheme() { return m_unfocused_theme; }
55 const FbTk::ThemeProxy<BaseTheme> &unfocusedTheme() const { return m_unfocused_theme; } 55 const FbTk::ThemeProxy<BaseTheme> &unfocusedTheme() const { return m_unfocused_theme; }
56 56
57 FbTk::Signal<void> &reconfigSig() { return m_reconfig_sig; } 57 FbTk::Signal<> &reconfigSig() { return m_reconfig_sig; }
58 58
59 virtual BaseTheme &operator *() { 59 virtual BaseTheme &operator *() {
60 return (m_win.isFocused() || m_win.getAttentionState()) ? 60 return (m_win.isFocused() || m_win.getAttentionState()) ?
@@ -70,7 +70,7 @@ private:
70 70
71 Focusable &m_win; 71 Focusable &m_win;
72 FbTk::ThemeProxy<BaseTheme> &m_focused_theme, &m_unfocused_theme; 72 FbTk::ThemeProxy<BaseTheme> &m_focused_theme, &m_unfocused_theme;
73 FbTk::Signal<void> m_reconfig_sig; 73 FbTk::Signal<> m_reconfig_sig;
74 FbTk::SignalTracker m_signals; 74 FbTk::SignalTracker m_signals;
75}; 75};
76 76