From 13412f67caebe2dc4b86d7f367eb1dce8609bde1 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Thu, 9 Feb 2012 21:21:40 +1100 Subject: main menu: Add the ability to hide and reorder the main menu items. To change the shown menu items add the line "root_menu_order:" into your config.cfg can be any of: bookmarks, files, database, wps, settings, recording, radio, playlists, plugins, system_menu, shortcuts Manual entry by Alexander Levin Change-Id: Ie7f4bfb0f795184de094d05fc341a6cedd1c0cde Reviewed-on: http://gerrit.rockbox.org/104 Reviewed-by: Jonathan Gordon --- apps/settings_list.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'apps/settings_list.c') diff --git a/apps/settings_list.c b/apps/settings_list.c index 44295ac5aa..c4d4d27f45 100644 --- a/apps/settings_list.c +++ b/apps/settings_list.c @@ -1921,6 +1921,11 @@ const struct settings_list settings[] = { "resume rewind", UNIT_SEC, 0, 60, 5, NULL, NULL, NULL), #endif + CUSTOM_SETTING(0, root_menu, + LANG_ROCKBOX_TITLE, /* lang string here is never actually used */ + NULL, "root_menu_order", + root_menu_load_from_cfg, root_menu_write_to_cfg, + root_menu_is_changed, root_menu_set_default), }; const int nb_settings = sizeof(settings)/sizeof(*settings); -- cgit v1.2.3