mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-03 19:01:13 +02:00
Menus shadow; 0 calls timer-list in event-list; Fix exit from sleeptimer set; Testing backup/restore settings
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@647 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Commit: c2cfa8862b
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2010-07-03 (Sat, 03 Jul 2010)
This commit is contained in:
@@ -50,7 +50,7 @@ extern CRemoteControl * g_RemoteControl; /* neutrino.cpp */
|
||||
|
||||
int CSleepTimerWidget::exec(CMenuTarget* parent, const std::string &)
|
||||
{
|
||||
int res = menu_return::RETURN_EXIT_ALL;
|
||||
int res = menu_return::RETURN_REPAINT;
|
||||
int shutdown_min = 0;
|
||||
char value[16];
|
||||
CStringInput *inbox;
|
||||
@@ -72,11 +72,15 @@ int CSleepTimerWidget::exec(CMenuTarget* parent, const std::string &)
|
||||
}
|
||||
|
||||
inbox = new CStringInput(LOCALE_SLEEPTIMERBOX_TITLE, value, 3, LOCALE_SLEEPTIMERBOX_HINT1, LOCALE_SLEEPTIMERBOX_HINT2, "0123456789 ");
|
||||
inbox->exec (NULL, "");
|
||||
inbox->hide ();
|
||||
int ret = inbox->exec (NULL, "");
|
||||
|
||||
inbox->hide ();
|
||||
delete inbox;
|
||||
|
||||
/* exit pressed, cancel timer setup */
|
||||
if(ret == menu_return::RETURN_EXIT_REPAINT)
|
||||
return res;
|
||||
|
||||
int new_val = atoi(value);
|
||||
if(shutdown_min != new_val) {
|
||||
shutdown_min = new_val;
|
||||
|
Reference in New Issue
Block a user