allow the plugin playback control menu to be put in a viewport.

fix text editor so it is actually possible to get to the control menu if the file hasnt been changed (its in the regular menu now)


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17221 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2008-04-23 10:28:34 +00:00
parent 45f6469ad1
commit 33b785e40b
10 changed files with 19 additions and 12 deletions

View file

@ -108,8 +108,9 @@ void playback_control_init(struct plugin_api* newapi)
api = newapi;
}
bool playback_control(struct plugin_api* newapi)
bool playback_control(struct plugin_api* newapi,
struct viewport parent[NB_SCREENS])
{
api = newapi;
return api->do_menu(&playback_control_menu, NULL, NULL, false) == MENU_ATTACHED_USB;
return api->do_menu(&playback_control_menu, NULL, parent, false) == MENU_ATTACHED_USB;
}