summaryrefslogtreecommitdiffstats
path: root/apps/menu.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-08-20 09:11:05 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-08-20 09:11:05 +0000
commit94b98044275fb5b73b3567e58f7530ef9fb7210e (patch)
treea80127c701ad3feb8af6381cd364b9c1ff0efe4d /apps/menu.c
parent057c9ca7ab98ef6957c4d73284810491c314f12b (diff)
downloadrockbox-94b98044275fb5b73b3567e58f7530ef9fb7210e.tar.gz
rockbox-94b98044275fb5b73b3567e58f7530ef9fb7210e.tar.bz2
rockbox-94b98044275fb5b73b3567e58f7530ef9fb7210e.zip
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/menu.c')
-rw-r--r--apps/menu.c11
1 files changed, 11 insertions, 0 deletions
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