From 94b98044275fb5b73b3567e58f7530ef9fb7210e Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Mon, 20 Aug 2007 09:11:05 +0000 Subject: [PATCH] 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 --- apps/menu.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/apps/menu.c b/apps/menu.c index 22c155eea5..201bbdff0e 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