From 77936e6ec5c2d71f605df855ed24677c307b1bc7 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Tue, 16 Mar 2004 13:44:56 +0000 Subject: First shot at a nice little button bar at the bottom of the recorder LCD. Enable Button Bar in the Display settings. Only the dir browser uses it at the moment. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4391 a1c6a512-1295-4272-9138-f99709370657 --- apps/playlist_viewer.c | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'apps/playlist_viewer.c') diff --git a/apps/playlist_viewer.c b/apps/playlist_viewer.c index 8d6429f767..e41b942538 100644 --- a/apps/playlist_viewer.c +++ b/apps/playlist_viewer.c @@ -680,23 +680,23 @@ static bool update_playlist(bool force) changed. */ static int onplay_menu(int index) { - struct menu_items menu[3]; /* increase this if you add entries! */ + struct menu_item items[3]; /* increase this if you add entries! */ int m, i=0, result, ret = 0; bool current = (tracks[index].index == viewer.current_playing_track); - menu[i].desc = str(LANG_REMOVE); - menu[i].voice_id = LANG_REMOVE; + items[i].desc = str(LANG_REMOVE); + items[i].voice_id = LANG_REMOVE; i++; - menu[i].desc = str(LANG_MOVE); - menu[i].voice_id = LANG_MOVE; + items[i].desc = str(LANG_MOVE); + items[i].voice_id = LANG_MOVE; i++; - menu[i].desc = str(LANG_FILE_OPTIONS); - menu[i].voice_id = LANG_FILE_OPTIONS; + items[i].desc = str(LANG_FILE_OPTIONS); + items[i].voice_id = LANG_FILE_OPTIONS; i++; - m = menu_init(menu, i, NULL); + m = menu_init(items, i, NULL, NULL, NULL, NULL); result = menu_show(m); if (result == MENU_ATTACHED_USB) ret = -1; @@ -759,14 +759,15 @@ static bool viewer_menu(void) int m; bool result; - struct menu_items items[] = { + struct menu_item items[] = { { STR(LANG_SHOW_ICONS), show_icons }, { STR(LANG_SHOW_INDICES), show_indices }, { STR(LANG_TRACK_DISPLAY), track_display }, { STR(LANG_SAVE_DYNAMIC_PLAYLIST), save_playlist }, }; - - m=menu_init( items, sizeof(items) / sizeof(*items), NULL ); + + m=menu_init( items, sizeof(items) / sizeof(*items), NULL, + NULL, NULL, NULL ); result = menu_run(m); menu_exit(m); -- cgit v1.2.3