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/root_menu.h | |
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/root_menu.h')
-rw-r--r-- | apps/root_menu.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/root_menu.h b/apps/root_menu.h index 8d11d9b338..32385d9530 100644 --- a/apps/root_menu.h +++ b/apps/root_menu.h | |||
@@ -61,8 +61,15 @@ enum { | |||
61 | GO_TO_SHORTCUTMENU | 61 | GO_TO_SHORTCUTMENU |
62 | }; | 62 | }; |
63 | 63 | ||
64 | extern const struct menu_item_ex root_menu_; | 64 | extern struct menu_item_ex root_menu_; |
65 | 65 | ||
66 | extern void previous_music_is_wps(void); | 66 | extern void previous_music_is_wps(void); |
67 | 67 | ||
68 | void root_menu_load_from_cfg(void* setting, char *value); | ||
69 | char* root_menu_write_to_cfg(void* setting, char*buf, int buf_len); | ||
70 | void root_menu_set_default(void* setting, void* defaultval); | ||
71 | bool root_menu_is_changed(void* setting, void* defaultval); | ||
72 | |||
73 | |||
74 | |||
68 | #endif /* __ROOT_MENU_H__ */ | 75 | #endif /* __ROOT_MENU_H__ */ |