diff options
Diffstat (limited to 'apps/gui/skin_engine/skin_tokens.c')
-rw-r--r-- | apps/gui/skin_engine/skin_tokens.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/gui/skin_engine/skin_tokens.c b/apps/gui/skin_engine/skin_tokens.c index ec6f606938..8e15ddc84a 100644 --- a/apps/gui/skin_engine/skin_tokens.c +++ b/apps/gui/skin_engine/skin_tokens.c | |||
@@ -71,6 +71,7 @@ | |||
71 | #include "radio.h" | 71 | #include "radio.h" |
72 | #include "tuner.h" | 72 | #include "tuner.h" |
73 | #endif | 73 | #endif |
74 | #include "list.h" | ||
74 | 75 | ||
75 | #define NOINLINE __attribute__ ((noinline)) | 76 | #define NOINLINE __attribute__ ((noinline)) |
76 | 77 | ||
@@ -894,6 +895,17 @@ const char *get_token_value(struct gui_wps *gwps, | |||
894 | *intval = sb_get_icon(gwps->display->screen_type); | 895 | *intval = sb_get_icon(gwps->display->screen_type); |
895 | snprintf(buf, buf_size, "%d",sb_get_icon(gwps->display->screen_type)); | 896 | snprintf(buf, buf_size, "%d",sb_get_icon(gwps->display->screen_type)); |
896 | return buf; | 897 | return buf; |
898 | case SKIN_TOKEN_LIST_ITEM_TEXT: | ||
899 | return skinlist_get_item_text(); | ||
900 | case SKIN_TOKEN_LIST_ITEM_IS_SELECTED: | ||
901 | return skinlist_is_selected_item()?"s":""; | ||
902 | case SKIN_TOKEN_LIST_ITEM_ICON: | ||
903 | if (intval) | ||
904 | *intval = skinlist_get_item_icon(); | ||
905 | snprintf(buf, buf_size, "%d",skinlist_get_item_icon()); | ||
906 | return buf; | ||
907 | case SKIN_TOKEN_LIST_NEEDS_SCROLLBAR: | ||
908 | return skinlist_needs_scrollbar(gwps->display->screen_type) ? "s" : ""; | ||
897 | #endif | 909 | #endif |
898 | case SKIN_TOKEN_PLAYLIST_NAME: | 910 | case SKIN_TOKEN_PLAYLIST_NAME: |
899 | return playlist_name(NULL, buf, buf_size); | 911 | return playlist_name(NULL, buf, buf_size); |