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

@ -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);