aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2011-01-15 20:38:56 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2011-01-15 20:38:56 (GMT)
commit1f0adef4daa2da5b08ed7f41e7a0ce1e3f71e46f (patch)
tree7b09ec2076520e6d470b588bb9fb4e1e63dabe4e
parent05a52116dfa39a07bc5739340eb1a84660c96e25 (diff)
downloadfluxbox_paul-1f0adef4daa2da5b08ed7f41e7a0ce1e3f71e46f.zip
fluxbox_paul-1f0adef4daa2da5b08ed7f41e7a0ce1e3f71e46f.tar.bz2
better use of API, no need for 'timeval' in Menu
-rw-r--r--src/FbTk/Menu.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/FbTk/Menu.cc b/src/FbTk/Menu.cc
index 5531410..c281245 100644
--- a/src/FbTk/Menu.cc
+++ b/src/FbTk/Menu.cc
@@ -1200,10 +1200,7 @@ void Menu::closeMenu() {
1200} 1200}
1201 1201
1202void Menu::startHide() { 1202void Menu::startHide() {
1203 timeval timeout; 1203 m_hide_timer.setTimeout(theme()->getDelay() * 1000);
1204 timeout.tv_sec = 0;
1205 timeout.tv_usec = theme()->getDelay() * 1000; // transformed to usec
1206 m_hide_timer.setTimeout(timeout);
1207 m_hide_timer.start(); 1204 m_hide_timer.start();
1208} 1205}
1209 1206