aboutsummaryrefslogtreecommitdiff
path: root/src/AttentionNoticeHandler.hh
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-05-03 21:48:24 (GMT)
committerPavel Labath <pavelo@centrum.sk>2011-05-10 11:00:45 (GMT)
commit129bac1e0f0979c80902edc8e092596b81fe14f6 (patch)
tree0624ee5da85ec2d1f758612cddae2e95a50249f9 /src/AttentionNoticeHandler.hh
parent0775350fee345e37fb59835dda4d85664346b606 (diff)
downloadfluxbox-129bac1e0f0979c80902edc8e092596b81fe14f6.zip
fluxbox-129bac1e0f0979c80902edc8e092596b81fe14f6.tar.bz2
Convert Focusable::dieSig to FbTk::Signal
Diffstat (limited to 'src/AttentionNoticeHandler.hh')
-rw-r--r--src/AttentionNoticeHandler.hh8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/AttentionNoticeHandler.hh b/src/AttentionNoticeHandler.hh
index 27d3b43..ed319b4 100644
--- a/src/AttentionNoticeHandler.hh
+++ b/src/AttentionNoticeHandler.hh
@@ -22,10 +22,10 @@
22#ifndef ATTENTIONNOTICEHANDLER_HH 22#ifndef ATTENTIONNOTICEHANDLER_HH
23#define ATTENTIONNOTICEHANDLER_HH 23#define ATTENTIONNOTICEHANDLER_HH
24 24
25#include "FbTk/Observer.hh"
26
27#include <map> 25#include <map>
28 26
27#include "FbTk/Signal.hh"
28
29class Focusable; 29class Focusable;
30 30
31namespace FbTk { 31namespace FbTk {
@@ -36,7 +36,7 @@ class Timer;
36 * Makes the title and iconbutton flash when the window 36 * Makes the title and iconbutton flash when the window
37 * demands attention. 37 * demands attention.
38 */ 38 */
39class AttentionNoticeHandler: public FbTk::Observer { 39class AttentionNoticeHandler: private FbTk::SignalTracker {
40public: 40public:
41 ~AttentionNoticeHandler(); 41 ~AttentionNoticeHandler();
42 42
@@ -44,8 +44,6 @@ public:
44 /// Adds a client that requires attention, 44 /// Adds a client that requires attention,
45 /// will fail if the client is already active 45 /// will fail if the client is already active
46 void addAttention(Focusable &client); 46 void addAttention(Focusable &client);
47 /// removes the client from the attention map
48 void update(FbTk::Subject *subj);
49 47
50 bool isDemandingAttention(const Focusable &client); 48 bool isDemandingAttention(const Focusable &client);
51 49