diff options
| author | Jonathan Gordon <rockbox@jdgordon.info> | 2007-08-20 09:11:05 +0000 |
|---|---|---|
| committer | Jonathan Gordon <rockbox@jdgordon.info> | 2007-08-20 09:11:05 +0000 |
| commit | 94b98044275fb5b73b3567e58f7530ef9fb7210e (patch) | |
| tree | a80127c701ad3feb8af6381cd364b9c1ff0efe4d /apps | |
| parent | 057c9ca7ab98ef6957c4d73284810491c314f12b (diff) | |
| download | rockbox-94b98044275fb5b73b3567e58f7530ef9fb7210e.zip rockbox-94b98044275fb5b73b3567e58f7530ef9fb7210e.tar.gz rockbox-94b98044275fb5b73b3567e58f7530ef9fb7210e.tar.bz2 rockbox-94b98044275fb5b73b3567e58f7530ef9fb7210e.tar.xz | |
Make MENUITEM_STRINGLIST() menus talk (if ID2P() is used for the string)
Makes the plugin browser talk (FS#7612), as well as the paylist viewer menu and the bookmark menu.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14399 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/menu.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/menu.c b/apps/menu.c index 22c155e..201bbdf 100644 --- a/apps/menu.c +++ b/apps/menu.c @@ -250,6 +250,17 @@ static void talk_menu_item(const struct menu_item_ex *menu, talk_id(id,false); } } + else if(((menu->flags&MENU_TYPE_MASK) == MT_RETURN_ID)) + { + if ((menu->flags&MENU_DYNAMIC_DESC) == 0) + { + unsigned char *s = (unsigned char *)menu->strings[sel]; + /* string list, try to talk it if ID2P was used */ + id = P2ID(s); + if (id != -1) + talk_id(id,false); + } + } } } #define MAX_OPTIONS 32 |