summaryrefslogtreecommitdiffstats
path: root/apps/menus
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2011-12-08 10:23:46 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2011-12-08 10:23:46 +0000
commit29b1ba3445a8acaffe0fb11c267869eccda80883 (patch)
tree2cbf6f1e6de488d1eb753a358fd7ac05ecbf49db /apps/menus
parent2376c4f825400fd0f8619cd746f3093c59ca7710 (diff)
downloadrockbox-29b1ba3445a8acaffe0fb11c267869eccda80883.tar.gz
rockbox-29b1ba3445a8acaffe0fb11c267869eccda80883.tar.bz2
rockbox-29b1ba3445a8acaffe0fb11c267869eccda80883.zip
shortcuts: talk the time and configure the sleep timeout
Use "type: time" and "data: talk" to have the time voiced when the shortcut is run. use "type: time" and "data: sleep X" where X is the number of minutes to run the sleep timer for (0 means disable) the name field is required git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31178 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/menus')
-rw-r--r--apps/menus/main_menu.c2
-rw-r--r--apps/menus/time_menu.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/menus/main_menu.c b/apps/menus/main_menu.c
index b6ce9e75c6..130d0bc2d5 100644
--- a/apps/menus/main_menu.c
+++ b/apps/menus/main_menu.c
@@ -376,7 +376,7 @@ MENUITEM_FUNCTION(show_info_item, 0, ID2P(LANG_ROCKBOX_INFO),
/* sleep Menu */
-static const char* sleep_timer_formatter(char* buffer, size_t buffer_size,
+const char* sleep_timer_formatter(char* buffer, size_t buffer_size,
int value, const char* unit)
{
(void) unit;
diff --git a/apps/menus/time_menu.c b/apps/menus/time_menu.c
index 9be335c8ee..a793809800 100644
--- a/apps/menus/time_menu.c
+++ b/apps/menus/time_menu.c
@@ -139,7 +139,7 @@ MENUITEM_FUNCTION(alarm_wake_up_screen, 0, ID2P(LANG_ALARM_WAKEUP_SCREEN),
MENUITEM_SETTING(sleeptimer_on_startup,
&global_settings.sleeptimer_on_startup, NULL);
-static void talk_timedate(void)
+void talk_timedate(void)
{
struct tm *tm = get_time();
if (!global_settings.talk_menu)