summaryrefslogtreecommitdiff
path: root/apps/gui/skin_engine
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/skin_engine')
-rw-r--r--apps/gui/skin_engine/skin_parser.c1
-rw-r--r--apps/gui/skin_engine/skin_tokens.c6
-rw-r--r--apps/gui/skin_engine/skin_tokens.h1
3 files changed, 8 insertions, 0 deletions
diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c
index c05ebca45e..26ccf47335 100644
--- a/apps/gui/skin_engine/skin_parser.c
+++ b/apps/gui/skin_engine/skin_parser.c
@@ -200,6 +200,7 @@ static const struct wps_tag all_tags[] = {
200#endif 200#endif
201 201
202 { WPS_TOKEN_RTC_PRESENT , "cc", WPS_REFRESH_STATIC, NULL }, 202 { WPS_TOKEN_RTC_PRESENT , "cc", WPS_REFRESH_STATIC, NULL },
203 { WPS_TOKEN_RTC_24HR_SETTING_MODE, "cx", WPS_REFRESH_STATIC, NULL },
203 { WPS_TOKEN_RTC_DAY_OF_MONTH, "cd", WPS_RTC_REFRESH, NULL }, 204 { WPS_TOKEN_RTC_DAY_OF_MONTH, "cd", WPS_RTC_REFRESH, NULL },
204 { WPS_TOKEN_RTC_DAY_OF_MONTH_BLANK_PADDED,"ce", WPS_RTC_REFRESH, NULL }, 205 { WPS_TOKEN_RTC_DAY_OF_MONTH_BLANK_PADDED,"ce", WPS_RTC_REFRESH, NULL },
205 { WPS_TOKEN_RTC_12HOUR_CFG, "cf", WPS_RTC_REFRESH, NULL }, 206 { WPS_TOKEN_RTC_12HOUR_CFG, "cf", WPS_RTC_REFRESH, NULL },
diff --git a/apps/gui/skin_engine/skin_tokens.c b/apps/gui/skin_engine/skin_tokens.c
index 46adbdc097..6dbceca906 100644
--- a/apps/gui/skin_engine/skin_tokens.c
+++ b/apps/gui/skin_engine/skin_tokens.c
@@ -569,6 +569,12 @@ const char *get_token_value(struct gui_wps *gwps,
569#else 569#else
570 return NULL; 570 return NULL;
571#endif 571#endif
572 case WPS_TOKEN_RTC_24HR_SETTING_MODE:
573#if CONFIG_RTC
574 return global_settings.timeformat?NULL:"z";
575#else
576 return NULL;
577#endif
572 578
573#if CONFIG_RTC 579#if CONFIG_RTC
574 case WPS_TOKEN_RTC_12HOUR_CFG: 580 case WPS_TOKEN_RTC_12HOUR_CFG:
diff --git a/apps/gui/skin_engine/skin_tokens.h b/apps/gui/skin_engine/skin_tokens.h
index 6d783551e6..5f35afc274 100644
--- a/apps/gui/skin_engine/skin_tokens.h
+++ b/apps/gui/skin_engine/skin_tokens.h
@@ -62,6 +62,7 @@ enum wps_token_type {
62 /* Time */ 62 /* Time */
63 63
64 WPS_TOKEN_RTC_PRESENT, 64 WPS_TOKEN_RTC_PRESENT,
65 WPS_TOKEN_RTC_24HR_SETTING_MODE,
65 66
66 /* The begin/end values allow us to know if a token is an RTC one. 67 /* The begin/end values allow us to know if a token is an RTC one.
67 New RTC tokens should be added between the markers. */ 68 New RTC tokens should be added between the markers. */