diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2008-03-26 03:35:24 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2008-03-26 03:35:24 +0000 |
commit | 5ca15399690a686646d4739b3f4c51c62cc88b68 (patch) | |
tree | 1c12dc34bae30aedcb38bf5ceed8a2fcedc250c8 /apps/playlist_viewer.c | |
parent | af395f4db6ad7b83f9d9afefb1c0ceeedd140a45 (diff) | |
download | rockbox-5ca15399690a686646d4739b3f4c51c62cc88b68.tar.gz rockbox-5ca15399690a686646d4739b3f4c51c62cc88b68.tar.bz2 rockbox-5ca15399690a686646d4739b3f4c51c62cc88b68.zip |
the menu and list now accepts a parent viewport to draw in (and the menu can be told to not show status/button bars). This lays the groundwork to fix colour problems with plugin menus (see star.c for an example.) This hopefully fixes some button bar issues as well as theme problems.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16812 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playlist_viewer.c')
-rw-r--r-- | apps/playlist_viewer.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/playlist_viewer.c b/apps/playlist_viewer.c index db9c974ee8..c34957b332 100644 --- a/apps/playlist_viewer.c +++ b/apps/playlist_viewer.c @@ -438,7 +438,7 @@ static int onplay_menu(int index) ID2P(LANG_CATALOG_ADD_TO), ID2P(LANG_CATALOG_ADD_TO_NEW)); bool current = (current_track->index == viewer.current_playing_track); - result = do_menu(&menu_items, NULL); + result = do_menu(&menu_items, NULL, NULL, false); if (result == MENU_ATTACHED_USB) { ret = -1; @@ -505,7 +505,7 @@ MAKE_MENU(viewer_settings_menu, ID2P(LANG_PLAYLISTVIEWER_SETTINGS), &show_icons, &show_indices, &track_display, &save_playlist_item); static bool viewer_menu(void) { - return do_menu(&viewer_settings_menu, NULL) == MENU_ATTACHED_USB; + return do_menu(&viewer_settings_menu, NULL, NULL, false) == MENU_ATTACHED_USB; } /* Save playlist to disk */ @@ -589,7 +589,8 @@ bool playlist_viewer_ex(char* filename) if (!playlist_viewer_init(&viewer, filename, false)) goto exit; - gui_synclist_init(&playlist_lists, playlist_callback_name, &viewer, false, 1); + gui_synclist_init(&playlist_lists, playlist_callback_name, + &viewer, false, 1, NULL); gui_synclist_set_icon_callback(&playlist_lists, global_settings.playlist_viewer_icons? &playlist_callback_icons:NULL); @@ -798,7 +799,7 @@ bool search_playlist(void) } backlight_on(); gui_synclist_init(&playlist_lists, playlist_search_callback_name, - found_indicies, false, 1); + found_indicies, false, 1, NULL); gui_synclist_set_icon_callback(&playlist_lists, NULL); gui_synclist_set_nb_items(&playlist_lists, found_indicies_count); gui_synclist_select_item(&playlist_lists, 0); |