summaryrefslogtreecommitdiff
path: root/apps/plugins/text_editor.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2008-04-23 10:28:34 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2008-04-23 10:28:34 +0000
commit33b785e40bc2e302cd670a5896429e59cf201be3 (patch)
treebb048ae91a0d30b342fb0ac4bfdda63852df38eb /apps/plugins/text_editor.c
parent45f6469ad1e44d56b5bd14a5eb9cc605bfd92eb0 (diff)
downloadrockbox-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/text_editor.c')
-rw-r--r--apps/plugins/text_editor.c9
1 files changed, 7 insertions, 2 deletions
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);