From 33b785e40bc2e302cd670a5896429e59cf201be3 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Wed, 23 Apr 2008 10:28:34 +0000 Subject: 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 --- apps/plugins/text_editor.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'apps/plugins/text_editor.c') diff --git a/apps/plugins/text_editor.c b/apps/plugins/text_editor.c index 5397260..617155f 100644 --- a/apps/plugins/text_editor.c +++ b/apps/plugins/text_editor.c @@ -221,7 +221,8 @@ int do_item_menu(int cur_sel, char* copy_buffer) MENUITEM_STRINGLIST(menu, "Line Options", NULL, "Cut/Delete", "Copy", "Insert Above", "Insert Below", - "Concat To Above", "Save"); + "Concat To Above", "Save", + "Show Playback Menu",); switch (rb->do_menu(&menu, NULL, NULL, false)) { @@ -260,6 +261,10 @@ int do_item_menu(int cur_sel, char* copy_buffer) case 5: /* save */ ret = MENU_RET_SAVE; break; + case 6: /* playback menu */ + playback_control(rb, NULL); + ret = MENU_RET_UPDATE; + break; default: ret = MENU_RET_NO_UPDATE; break; @@ -474,7 +479,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) case 0: break; case 1: - playback_control(rb); + playback_control(rb, NULL); break; case 2: //save to disk save_changes(1); -- cgit v1.1