forked from len0rd/rockbox
New General Settings submenu: Startup/Shutdown
A dedicated submenu for items which are run at startup, or initiate a shutdown. Currently containing: Start Screen, Idle Poweroff, Sleep Timer & Start Sleep Timer on Boot. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31435 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
3bc771d669
commit
2ecaca91f0
11 changed files with 179 additions and 169 deletions
|
|
@ -28,10 +28,8 @@
|
|||
#include "lang.h"
|
||||
#include "action.h"
|
||||
#include "settings.h"
|
||||
#include "powermgmt.h"
|
||||
#include "menu.h"
|
||||
#include "misc.h"
|
||||
#include "exported_menus.h"
|
||||
#include "keyboard.h"
|
||||
#include "talk.h"
|
||||
#include "time.h"
|
||||
|
|
@ -136,8 +134,6 @@ MENUITEM_FUNCTION(alarm_wake_up_screen, 0, ID2P(LANG_ALARM_WAKEUP_SCREEN),
|
|||
#endif /* CONFIG_TUNER || defined(HAVE_RECORDING) */
|
||||
|
||||
#endif /* HAVE_RTC_ALARM */
|
||||
MENUITEM_SETTING(sleeptimer_on_startup,
|
||||
&global_settings.sleeptimer_on_startup, NULL);
|
||||
|
||||
void talk_timedate(void)
|
||||
{
|
||||
|
|
@ -237,14 +233,14 @@ static int time_menu_callback(int action,
|
|||
|
||||
|
||||
MAKE_MENU(time_menu, ID2P(LANG_TIME_MENU), time_menu_callback, Icon_NOICON,
|
||||
&time_set, &sleep_timer_call,
|
||||
&time_set,
|
||||
#ifdef HAVE_RTC_ALARM
|
||||
&alarm_screen_call,
|
||||
#if defined(HAVE_RECORDING) || CONFIG_TUNER
|
||||
&alarm_wake_up_screen,
|
||||
#endif
|
||||
#endif
|
||||
&sleeptimer_on_startup, &timeformat);
|
||||
&timeformat);
|
||||
|
||||
int time_screen(void* ignored)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue