diff options
| author | Jonathan Gordon <rockbox@jdgordon.info> | 2008-04-23 10:28:34 +0000 |
|---|---|---|
| committer | Jonathan Gordon <rockbox@jdgordon.info> | 2008-04-23 10:28:34 +0000 |
| commit | 33b785e40bc2e302cd670a5896429e59cf201be3 (patch) | |
| tree | bb048ae91a0d30b342fb0ac4bfdda63852df38eb /apps/plugins/lib | |
| parent | 45f6469ad1e44d56b5bd14a5eb9cc605bfd92eb0 (diff) | |
| download | rockbox-33b785e40bc2e302cd670a5896429e59cf201be3.zip rockbox-33b785e40bc2e302cd670a5896429e59cf201be3.tar.gz rockbox-33b785e40bc2e302cd670a5896429e59cf201be3.tar.bz2 rockbox-33b785e40bc2e302cd670a5896429e59cf201be3.tar.xz | |
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
Diffstat (limited to 'apps/plugins/lib')
| -rw-r--r-- | apps/plugins/lib/playback_control.c | 5 | ||||
| -rw-r--r-- | apps/plugins/lib/playback_control.h | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/apps/plugins/lib/playback_control.c b/apps/plugins/lib/playback_control.c index 2bed02e..cba4f5a 100644 --- a/apps/plugins/lib/playback_control.c +++ b/apps/plugins/lib/playback_control.c @@ -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; } diff --git a/apps/plugins/lib/playback_control.h b/apps/plugins/lib/playback_control.h index 83f0764..6029152 100644 --- a/apps/plugins/lib/playback_control.h +++ b/apps/plugins/lib/playback_control.h @@ -25,6 +25,7 @@ extern const struct menu_item_ex playback_control_menu; void playback_control_init(struct plugin_api* newapi); /* Use this if your menu still uses the old menu api */ -bool playback_control(struct plugin_api* api); +bool playback_control(struct plugin_api* api, + struct viewport parent[NB_SCREENS]); #endif /* __PLAYBACK_CONTROL_H__ */ |