summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-09-03 11:51:54 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2005-09-03 11:51:54 +0200
commit7148cf452c440d6f7ee753866275968188094fbc (patch)
tree6f0b19ccac857ab2bb3fb33d687abd71d066c724 /menu.c
parent45a29e5b1614359d09aa3e69b8928fcfeebc84a2 (diff)
downloadvdr-7148cf452c440d6f7ee753866275968188094fbc.tar.gz
vdr-7148cf452c440d6f7ee753866275968188094fbc.tar.bz2
The menu timeout handling is now done centrally in the main program loop
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/menu.c b/menu.c
index 4f939b85..9709212d 100644
--- a/menu.c
+++ b/menu.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: menu.c 1.358 2005/09/03 10:34:46 kls Exp $
+ * $Id: menu.c 1.359 2005/09/03 11:42:27 kls Exp $
*/
#include "menu.h"
@@ -29,7 +29,6 @@
#include "transfer.h"
#include "videodir.h"
-#define MENUTIMEOUT 120 // seconds
#define MAXWAIT4EPGINFO 3 // seconds
#define MODETIMEOUT 3 // seconds
@@ -1300,7 +1299,6 @@ cMenuCam::cMenuCam(cCiMenu *CiMenu)
Add(new cOsdItem(ciMenu->BottomText()));
Display();
dsyslog("CAM: Menu - %s", ciMenu->TitleText());
- lastActivity = time(NULL);
}
cMenuCam::~cMenuCam()
@@ -1329,10 +1327,6 @@ eOSState cMenuCam::ProcessKey(eKeys Key)
default: break;
}
}
- if (Key != kNone)
- lastActivity = time(NULL);
- else if (time(NULL) - lastActivity > MENUTIMEOUT)
- state = osEnd;
return state;
}
@@ -1350,7 +1344,6 @@ cMenuCamEnquiry::cMenuCamEnquiry(cCiEnquiry *CiEnquiry)
SetTitle(ciEnquiry->Text() ? ciEnquiry->Text() : "CAM");
Add(new cMenuEditNumItem("Input", input, Length, ciEnquiry->Blind()));
Display();
- lastActivity = time(NULL);
}
cMenuCamEnquiry::~cMenuCamEnquiry()
@@ -1379,10 +1372,6 @@ eOSState cMenuCamEnquiry::ProcessKey(eKeys Key)
default: break;
}
}
- if (Key != kNone)
- lastActivity = time(NULL);
- else if (time(NULL) - lastActivity > MENUTIMEOUT)
- state = osEnd;
return state;
}
@@ -2505,7 +2494,6 @@ void cMenuMain::Set(void)
SetHelp(!replaying ? tr("Record") : NULL, tr("Audio"), replaying ? NULL : tr("Pause"), replaying ? tr("Button$Stop") : cReplayControl::LastReplayed() ? tr("Resume") : NULL);
Display();
- lastActivity = time(NULL);
}
eOSState cMenuMain::ProcessKey(eKeys Key)
@@ -2578,15 +2566,12 @@ eOSState cMenuMain::ProcessKey(eKeys Key)
}
}
if (Key != kNone) {
- lastActivity = time(NULL);
if (Setup.OSDLanguage != osdLanguage) {
Set();
if (!HasSubMenu())
Display();
}
}
- else if (time(NULL) - lastActivity > MENUTIMEOUT)
- state = osEnd;
return state;
}