diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2012-02-09 21:21:40 +1100 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2012-02-25 12:40:44 +0100 |
commit | 13412f67caebe2dc4b86d7f367eb1dce8609bde1 (patch) | |
tree | 9aeba92e3092dd17878ce8caefff35c3eba99d98 /apps/settings_list.c | |
parent | 8125877f6091066d847cf4bb4b8dcf0925830875 (diff) | |
download | rockbox-13412f67caebe2dc4b86d7f367eb1dce8609bde1.tar.gz rockbox-13412f67caebe2dc4b86d7f367eb1dce8609bde1.zip |
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:<items>" into your config.cfg
<items> 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 <rockbox@jdgordon.info>
Diffstat (limited to 'apps/settings_list.c')
-rw-r--r-- | apps/settings_list.c | 5 |
1 files changed, 5 insertions, 0 deletions
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[] = { | |||
1921 | "resume rewind", UNIT_SEC, 0, 60, 5, | 1921 | "resume rewind", UNIT_SEC, 0, 60, 5, |
1922 | NULL, NULL, NULL), | 1922 | NULL, NULL, NULL), |
1923 | #endif | 1923 | #endif |
1924 | CUSTOM_SETTING(0, root_menu, | ||
1925 | LANG_ROCKBOX_TITLE, /* lang string here is never actually used */ | ||
1926 | NULL, "root_menu_order", | ||
1927 | root_menu_load_from_cfg, root_menu_write_to_cfg, | ||
1928 | root_menu_is_changed, root_menu_set_default), | ||
1924 | }; | 1929 | }; |
1925 | 1930 | ||
1926 | const int nb_settings = sizeof(settings)/sizeof(*settings); | 1931 | const int nb_settings = sizeof(settings)/sizeof(*settings); |