diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-03-16 13:44:56 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-03-16 13:44:56 +0000 |
commit | 77936e6ec5c2d71f605df855ed24677c307b1bc7 (patch) | |
tree | f58c287f2a9f575c764b026116e32787c6c5bc0e /apps/playlist_viewer.c | |
parent | ce0878bd40ea07d126181d1827a235f7c3ee1b00 (diff) | |
download | rockbox-77936e6ec5c2d71f605df855ed24677c307b1bc7.tar.gz rockbox-77936e6ec5c2d71f605df855ed24677c307b1bc7.zip |
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
Diffstat (limited to 'apps/playlist_viewer.c')
-rw-r--r-- | apps/playlist_viewer.c | 23 |
1 files changed, 12 insertions, 11 deletions
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) | |||
680 | changed. */ | 680 | changed. */ |
681 | static int onplay_menu(int index) | 681 | static int onplay_menu(int index) |
682 | { | 682 | { |
683 | struct menu_items menu[3]; /* increase this if you add entries! */ | 683 | struct menu_item items[3]; /* increase this if you add entries! */ |
684 | int m, i=0, result, ret = 0; | 684 | int m, i=0, result, ret = 0; |
685 | bool current = (tracks[index].index == viewer.current_playing_track); | 685 | bool current = (tracks[index].index == viewer.current_playing_track); |
686 | 686 | ||
687 | menu[i].desc = str(LANG_REMOVE); | 687 | items[i].desc = str(LANG_REMOVE); |
688 | menu[i].voice_id = LANG_REMOVE; | 688 | items[i].voice_id = LANG_REMOVE; |
689 | i++; | 689 | i++; |
690 | 690 | ||
691 | menu[i].desc = str(LANG_MOVE); | 691 | items[i].desc = str(LANG_MOVE); |
692 | menu[i].voice_id = LANG_MOVE; | 692 | items[i].voice_id = LANG_MOVE; |
693 | i++; | 693 | i++; |
694 | 694 | ||
695 | menu[i].desc = str(LANG_FILE_OPTIONS); | 695 | items[i].desc = str(LANG_FILE_OPTIONS); |
696 | menu[i].voice_id = LANG_FILE_OPTIONS; | 696 | items[i].voice_id = LANG_FILE_OPTIONS; |
697 | i++; | 697 | i++; |
698 | 698 | ||
699 | m = menu_init(menu, i, NULL); | 699 | m = menu_init(items, i, NULL, NULL, NULL, NULL); |
700 | result = menu_show(m); | 700 | result = menu_show(m); |
701 | if (result == MENU_ATTACHED_USB) | 701 | if (result == MENU_ATTACHED_USB) |
702 | ret = -1; | 702 | ret = -1; |
@@ -759,14 +759,15 @@ static bool viewer_menu(void) | |||
759 | int m; | 759 | int m; |
760 | bool result; | 760 | bool result; |
761 | 761 | ||
762 | struct menu_items items[] = { | 762 | struct menu_item items[] = { |
763 | { STR(LANG_SHOW_ICONS), show_icons }, | 763 | { STR(LANG_SHOW_ICONS), show_icons }, |
764 | { STR(LANG_SHOW_INDICES), show_indices }, | 764 | { STR(LANG_SHOW_INDICES), show_indices }, |
765 | { STR(LANG_TRACK_DISPLAY), track_display }, | 765 | { STR(LANG_TRACK_DISPLAY), track_display }, |
766 | { STR(LANG_SAVE_DYNAMIC_PLAYLIST), save_playlist }, | 766 | { STR(LANG_SAVE_DYNAMIC_PLAYLIST), save_playlist }, |
767 | }; | 767 | }; |
768 | 768 | ||
769 | m=menu_init( items, sizeof(items) / sizeof(*items), NULL ); | 769 | m=menu_init( items, sizeof(items) / sizeof(*items), NULL, |
770 | NULL, NULL, NULL ); | ||
770 | result = menu_run(m); | 771 | result = menu_run(m); |
771 | menu_exit(m); | 772 | menu_exit(m); |
772 | 773 | ||