summaryrefslogtreecommitdiff
path: root/apps/root_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/root_menu.c')
-rw-r--r--apps/root_menu.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/apps/root_menu.c b/apps/root_menu.c
index 49379bbbfc..9ff7325ce1 100644
--- a/apps/root_menu.c
+++ b/apps/root_menu.c
@@ -484,21 +484,6 @@ MENUITEM_RETURNVALUE(playlists, ID2P(LANG_CATALOG), GO_TO_PLAYLISTS_SCREEN,
484MENUITEM_RETURNVALUE(system_menu_, ID2P(LANG_SYSTEM), GO_TO_SYSTEM_SCREEN, 484MENUITEM_RETURNVALUE(system_menu_, ID2P(LANG_SYSTEM), GO_TO_SYSTEM_SCREEN,
485 NULL, Icon_System_menu); 485 NULL, Icon_System_menu);
486 486
487#if CONFIG_KEYPAD == PLAYER_PAD
488static int do_shutdown(void)
489{
490#if CONFIG_CHARGING
491 if (charger_inserted())
492 charging_splash();
493 else
494#endif
495 sys_poweroff();
496 return 0;
497}
498MENUITEM_FUNCTION(do_shutdown_item, 0, ID2P(LANG_SHUTDOWN),
499 do_shutdown, NULL, NULL, Icon_NOICON);
500#endif
501
502struct menu_item_ex root_menu_; 487struct menu_item_ex root_menu_;
503static struct menu_callback_with_desc root_menu_desc = { 488static struct menu_callback_with_desc root_menu_desc = {
504 item_callback, ID2P(LANG_ROCKBOX_TITLE), Icon_Rockbox }; 489 item_callback, ID2P(LANG_ROCKBOX_TITLE), Icon_Rockbox };
@@ -521,9 +506,6 @@ static struct menu_table menu_table[] = {
521 { "playlists", &playlists }, 506 { "playlists", &playlists },
522 { "plugins", &rocks_browser }, 507 { "plugins", &rocks_browser },
523 { "system_menu", &system_menu_ }, 508 { "system_menu", &system_menu_ },
524#if CONFIG_KEYPAD == PLAYER_PAD
525 { "shutdown", &do_shutdown_item },
526#endif
527 { "shortcuts", &shortcut_menu }, 509 { "shortcuts", &shortcut_menu },
528}; 510};
529#define MAX_MENU_ITEMS (sizeof(menu_table) / sizeof(struct menu_table)) 511#define MAX_MENU_ITEMS (sizeof(menu_table) / sizeof(struct menu_table))