summaryrefslogtreecommitdiffstats
path: root/apps/playlist_viewer.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2010-09-21 22:55:24 +0000
committerThomas Martitz <kugel@rockbox.org>2010-09-21 22:55:24 +0000
commit138ee6304b1842e41a713bcb4877115f31cd0d4a (patch)
tree6493f51df727f4b9ae811889ffabc0cf68a7ffbf /apps/playlist_viewer.c
parent40e61a70e33e2fca0af78a9629cbb36d14a4330d (diff)
downloadrockbox-138ee6304b1842e41a713bcb4877115f31cd0d4a.tar.gz
rockbox-138ee6304b1842e41a713bcb4877115f31cd0d4a.tar.bz2
rockbox-138ee6304b1842e41a713bcb4877115f31cd0d4a.zip
Use convenience function.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28139 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playlist_viewer.c')
-rw-r--r--apps/playlist_viewer.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/apps/playlist_viewer.c b/apps/playlist_viewer.c
index 59b05a231e..50238446d6 100644
--- a/apps/playlist_viewer.c
+++ b/apps/playlist_viewer.c
@@ -652,12 +652,9 @@ enum playlist_viewer_result playlist_viewer_ex(const char* filename)
}
/* Timeout so we can determine if play status has changed */
- button = get_action(CONTEXT_TREE,HZ/2);
- bool res = gui_synclist_do_button(&playlist_lists,
- &button,
- LIST_WRAP_UNLESS_HELD);
+ bool res = list_do_action(CONTEXT_LIST, HZ/2,
+ &playlist_lists, &button, LIST_WRAP_UNLESS_HELD))
viewer.selected_track=gui_synclist_get_sel_pos(&playlist_lists);
-
if (res)
{
bool reload = playlist_buffer_needs_reload(&viewer.buffer,
@@ -841,8 +838,8 @@ bool search_playlist(void)
gui_synclist_draw(&playlist_lists);
while (!exit)
{
- button = get_action(CONTEXT_LIST, HZ/4);
- if (gui_synclist_do_button(&playlist_lists, &button, LIST_WRAP_UNLESS_HELD))
+ if (list_do_action(CONTEXT_LIST, HZ/4,
+ &playlist_lists, &button, LIST_WRAP_UNLESS_HELD))
continue;
switch (button)
{