From 1f0adef4daa2da5b08ed7f41e7a0ce1e3f71e46f Mon Sep 17 00:00:00 2001 From: Mathias Gumz Date: Sat, 15 Jan 2011 21:38:56 +0100 Subject: better use of API, no need for 'timeval' in Menu --- src/FbTk/Menu.cc | 5 +---- 1 file changed, 1 insertion(+), 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() { } void Menu::startHide() { - timeval timeout; - timeout.tv_sec = 0; - timeout.tv_usec = theme()->getDelay() * 1000; // transformed to usec - m_hide_timer.setTimeout(timeout); + m_hide_timer.setTimeout(theme()->getDelay() * 1000); m_hide_timer.start(); } -- cgit v0.11.2