summaryrefslogtreecommitdiff
path: root/src/Toolbar.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-05-16 09:24:40 +0000
committerDana Jansens <danakj@orodu.net>2002-05-16 09:24:40 +0000
commitae093dba2fb97124bb4af3eaf4070b46f07dfd74 (patch)
tree4dc63a1f7a5aebe7568e6a95b9d6123cf1539682 /src/Toolbar.cc
parenta4c9553c64fb854aa5fdf79f87d5b4d6a07ca67e (diff)
make a new autoRaiseDelay value take effect without having to restart
Diffstat (limited to 'src/Toolbar.cc')
-rw-r--r--src/Toolbar.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Toolbar.cc b/src/Toolbar.cc
index 8a3ea6b2..8e621bdf 100644
--- a/src/Toolbar.cc
+++ b/src/Toolbar.cc
@@ -80,7 +80,7 @@ Toolbar::Toolbar(BScreen &scrn, Resource &conf) : openbox(scrn.getOpenbox()),
hide_handler.toolbar = this;
hide_timer = new BTimer(openbox, hide_handler);
- hide_timer->setTimeout(openbox.getAutoRaiseDelay());
+ // the time out is set in ::reconfigure()
hide_timer->fireOnce(True);
image_ctrl = screen.getImageControl();
@@ -321,6 +321,8 @@ void Toolbar::load() {
}
void Toolbar::reconfigure() {
+ hide_timer->setTimeout(openbox.getAutoRaiseDelay());
+
frame.bevel_w = screen.getBevelWidth();
frame.width = screen.size().w() * m_width_percent / 100;