aboutsummaryrefslogtreecommitdiff
path: root/src/Toolbar.cc
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-07-15 18:54:59 (GMT)
committerPavel Labath <pavelo@centrum.sk>2011-07-15 18:54:59 (GMT)
commit10b97f55bf11ff31610a4f8783306fe845a25938 (patch)
tree24e7a08bb8a423c5e4cbb5fa1bcc87f1ddca8474 /src/Toolbar.cc
parenta3b2982e2ddef245e3006f05b1f76eb136ce3753 (diff)
downloadfluxbox_pavel-10b97f55bf11ff31610a4f8783306fe845a25938.zip
fluxbox_pavel-10b97f55bf11ff31610a4f8783306fe845a25938.tar.bz2
Attach modifiedSig handlers to the session.autoRaiseDelay resource
Diffstat (limited to 'src/Toolbar.cc')
-rw-r--r--src/Toolbar.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Toolbar.cc b/src/Toolbar.cc
index 1be8215..3919a19 100644
--- a/src/Toolbar.cc
+++ b/src/Toolbar.cc
@@ -219,7 +219,10 @@ Toolbar::Toolbar(BScreen &scrn, FbTk::Layer &layer, size_t width):
219 frame.grab_x = frame.grab_y = 0; 219 frame.grab_x = frame.grab_y = 0;
220 220
221 // setup hide timer 221 // setup hide timer
222 m_hide_timer.setTimeout(Fluxbox::instance()->getAutoRaiseDelay()); 222 m_hide_timer.setTimeout(*Fluxbox::instance()->getAutoRaiseDelayResource());
223 m_signal_tracker.join(Fluxbox::instance()->getAutoRaiseDelayResource().modifiedSig(),
224 FbTk::MemFun(m_hide_timer,
225 static_cast<void (FbTk::Timer::*)(time_t)>(&FbTk::Timer::setTimeout) ) );
223 FbTk::RefCount<FbTk::Command<void> > toggle_hidden(new FbTk::SimpleCommand<Toolbar>(*this, &Toolbar::toggleHidden)); 226 FbTk::RefCount<FbTk::Command<void> > toggle_hidden(new FbTk::SimpleCommand<Toolbar>(*this, &Toolbar::toggleHidden));
224 m_hide_timer.setCommand(toggle_hidden); 227 m_hide_timer.setCommand(toggle_hidden);
225 m_hide_timer.fireOnce(true); 228 m_hide_timer.fireOnce(true);