diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2011-01-15 20:38:56 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2011-01-15 20:38:56 (GMT) |
commit | 1f0adef4daa2da5b08ed7f41e7a0ce1e3f71e46f (patch) | |
tree | 7b09ec2076520e6d470b588bb9fb4e1e63dabe4e /src/FbTk | |
parent | 05a52116dfa39a07bc5739340eb1a84660c96e25 (diff) | |
download | fluxbox_paul-1f0adef4daa2da5b08ed7f41e7a0ce1e3f71e46f.zip fluxbox_paul-1f0adef4daa2da5b08ed7f41e7a0ce1e3f71e46f.tar.bz2 |
better use of API, no need for 'timeval' in Menu
Diffstat (limited to 'src/FbTk')
-rw-r--r-- | src/FbTk/Menu.cc | 5 |
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 | ||
1202 | void Menu::startHide() { | 1202 | void 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 | ||