diff options
| author | Jonathan Gordon <rockbox@jdgordon.info> | 2007-05-08 11:55:43 +0000 |
|---|---|---|
| committer | Jonathan Gordon <rockbox@jdgordon.info> | 2007-05-08 11:55:43 +0000 |
| commit | 77a458a464450c4e9d6977ac3f27b0e56217443c (patch) | |
| tree | 526440820d32959de28747194effefb2ad6012d0 /apps/plugins/text_editor.c | |
| parent | b15ef987ca75a6940313ae22f638363d50d7919e (diff) | |
| download | rockbox-77a458a464450c4e9d6977ac3f27b0e56217443c.zip rockbox-77a458a464450c4e9d6977ac3f27b0e56217443c.tar.gz rockbox-77a458a464450c4e9d6977ac3f27b0e56217443c.tar.bz2 rockbox-77a458a464450c4e9d6977ac3f27b0e56217443c.tar.xz | |
Move the old api out of the core and into the plugin lib.
ew plugins shuold use the new api and not this one.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13358 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/text_editor.c')
| -rw-r--r-- | apps/plugins/text_editor.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/apps/plugins/text_editor.c b/apps/plugins/text_editor.c index d95bdb9..523cbad 100644 --- a/apps/plugins/text_editor.c +++ b/apps/plugins/text_editor.c @@ -18,6 +18,7 @@ ****************************************************************************/ #include "plugin.h" #include "action.h" +#include "oldmenuapi.h" #if PLUGIN_BUFFER_SIZE > 0x45000 #define MAX_CHARS 0x40000 /* 128 kiB */ @@ -228,10 +229,10 @@ int do_item_menu(int cur_sel, char* copy_buffer) { "", NULL }, { "Save", NULL }, }; - m = rb->menu_init(items, sizeof(items) / sizeof(*items), + m = menu_init(rb, items, sizeof(items) / sizeof(*items), NULL, NULL, NULL, NULL); - switch (rb->menu_show(m)) + switch (menu_show(m)) { case 0: /* cut */ rb->strcpy(copy_buffer,&buffer[do_action(ACTION_GET,0,cur_sel)]); @@ -279,7 +280,7 @@ int do_item_menu(int cur_sel, char* copy_buffer) ret = MENU_RET_NO_UPDATE; break; } - rb->menu_exit(m); + menu_exit(m); return ret; } /* this is the plugin entry point */ @@ -409,10 +410,10 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) { "Ignore Changes and Exit", NULL }, }; - m = rb->menu_init(items, sizeof(items) / sizeof(*items), + m = menu_init(rb, items, sizeof(items) / sizeof(*items), NULL, NULL, NULL, NULL); - result=rb->menu_show(m); + result=menu_show(m); switch (result) { @@ -435,7 +436,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) exit=1; break; } - rb->menu_exit(m); + menu_exit(m); } else exit=1; break; |