diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2007-03-05 00:32:33 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2007-03-05 00:32:33 +0000 |
| commit | 298c2bbd8343109fdd1e3fc0a5fe1afed0346508 (patch) | |
| tree | 7f1d42666751ffe20cd68d17ee2d4f833cdd0522 /apps/gui | |
| parent | 8daa916aaa68614f4ac07e551d05b98b931992be (diff) | |
| download | rockbox-298c2bbd8343109fdd1e3fc0a5fe1afed0346508.zip rockbox-298c2bbd8343109fdd1e3fc0a5fe1afed0346508.tar.gz rockbox-298c2bbd8343109fdd1e3fc0a5fe1afed0346508.tar.bz2 rockbox-298c2bbd8343109fdd1e3fc0a5fe1afed0346508.tar.xz | |
Allow dynamic menu items to be spoken, especially the resume/now playing item
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12614 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui')
| -rw-r--r-- | apps/gui/list.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c index 950878b..6a784b49 100644 --- a/apps/gui/list.c +++ b/apps/gui/list.c @@ -32,6 +32,7 @@ #include "scrollbar.h" #include "statusbar.h" #include "textarea.h" +#include "lang.h" #ifdef HAVE_LCD_CHARCELLS #define SCROLL_LIMIT 1 @@ -310,6 +311,7 @@ static void gui_list_draw(struct gui_list * gui_list) while (i < display->nb_lines) { + unsigned char *s; char entry_buffer[MAX_PATH]; unsigned char *entry_name; int current_item = gui_list->start_item + @@ -319,9 +321,11 @@ static void gui_list_draw(struct gui_list * gui_list) * current available space on the screen, we stop*/ if(current_item >= gui_list->nb_items) break; - entry_name = gui_list->callback_get_item_name(current_item, - gui_list->data, - entry_buffer); + s = gui_list->callback_get_item_name(current_item, + gui_list->data, + entry_buffer); + entry_name = P2STR(s); + #ifdef HAVE_LCD_BITMAP /* position the string at the correct offset place */ int item_width,h; |