diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2010-02-26 03:45:41 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2010-02-26 03:45:41 +0000 |
commit | 466e5d9aa4fcdc3da6172eb9ae125fd4157be0b9 (patch) | |
tree | 660ff0f1991703cd87e77bab3cccca190d0f5e28 /apps/gui/skin_engine/skin_tokens.c | |
parent | ca755f767c2d67fb2b52c292402b3b3d3be28244 (diff) | |
download | rockbox-466e5d9aa4fcdc3da6172eb9ae125fd4157be0b9.tar.gz rockbox-466e5d9aa4fcdc3da6172eb9ae125fd4157be0b9.zip |
2 new tags for the base skin.
%Lt - the title text for the current list
%Li - the icon number. Same order as the CustomIcons list, except the first icon is the "no icon" icon.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24917 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/skin_engine/skin_tokens.c')
-rw-r--r-- | apps/gui/skin_engine/skin_tokens.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/gui/skin_engine/skin_tokens.c b/apps/gui/skin_engine/skin_tokens.c index 1189925ea0..a682bdf87a 100644 --- a/apps/gui/skin_engine/skin_tokens.c +++ b/apps/gui/skin_engine/skin_tokens.c | |||
@@ -416,6 +416,14 @@ const char *get_token_value(struct gui_wps *gwps, | |||
416 | case WPS_TOKEN_PLAYLIST_ENTRIES: | 416 | case WPS_TOKEN_PLAYLIST_ENTRIES: |
417 | snprintf(buf, buf_size, "%d", playlist_amount()); | 417 | snprintf(buf, buf_size, "%d", playlist_amount()); |
418 | return buf; | 418 | return buf; |
419 | |||
420 | case WPS_TOKEN_LIST_TITLE_TEXT: | ||
421 | return (char*)token->value.data; | ||
422 | case WPS_TOKEN_LIST_TITLE_ICON: | ||
423 | if (intval) | ||
424 | *intval = token->value.i; | ||
425 | snprintf(buf, buf_size, "%d", token->value.i); | ||
426 | return buf; | ||
419 | 427 | ||
420 | case WPS_TOKEN_PLAYLIST_NAME: | 428 | case WPS_TOKEN_PLAYLIST_NAME: |
421 | return playlist_name(NULL, buf, buf_size); | 429 | return playlist_name(NULL, buf, buf_size); |