aboutsummaryrefslogtreecommitdiff
path: root/src/AttentionNoticeHandler.cc
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2008-01-11 07:41:22 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-01-11 07:41:22 (GMT)
commit9f2f65a698c4cc71373a7fe9d73a0889e0d3487b (patch)
tree4ad67db771d73ea3c48f80a1244037fc9754edd2 /src/AttentionNoticeHandler.cc
parent1f01d84c080d607a91eb417efcaf5e500b5f1d7e (diff)
downloadfluxbox_pavel-9f2f65a698c4cc71373a7fe9d73a0889e0d3487b.zip
fluxbox_pavel-9f2f65a698c4cc71373a7fe9d73a0889e0d3487b.tar.bz2
make FbTk::Command a template class, split parsing information out of ObjectRegistry
Diffstat (limited to 'src/AttentionNoticeHandler.cc')
-rw-r--r--src/AttentionNoticeHandler.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/AttentionNoticeHandler.cc b/src/AttentionNoticeHandler.cc
index f8aafde..999b9d4 100644
--- a/src/AttentionNoticeHandler.cc
+++ b/src/AttentionNoticeHandler.cc
@@ -30,7 +30,7 @@
30#include "FbTk/Resource.hh" 30#include "FbTk/Resource.hh"
31 31
32namespace { 32namespace {
33class ToggleFrameFocusCmd: public FbTk::Command { 33class ToggleFrameFocusCmd: public FbTk::Command<void> {
34public: 34public:
35 ToggleFrameFocusCmd(Focusable &client): 35 ToggleFrameFocusCmd(Focusable &client):
36 m_client(client), 36 m_client(client),
@@ -82,7 +82,7 @@ void AttentionNoticeHandler::addAttention(Focusable &client) {
82 timeval timeout; 82 timeval timeout;
83 timeout.tv_sec = 0; 83 timeout.tv_sec = 0;
84 timeout.tv_usec = **timeout_res * 1000; 84 timeout.tv_usec = **timeout_res * 1000;
85 RefCount<Command> cmd(new ToggleFrameFocusCmd(client)); 85 RefCount<Command<void> > cmd(new ToggleFrameFocusCmd(client));
86 timer->setCommand(cmd); 86 timer->setCommand(cmd);
87 timer->setTimeout(timeout); 87 timer->setTimeout(timeout);
88 timer->fireOnce(false); // will repeat until window has focus 88 timer->fireOnce(false); // will repeat until window has focus