summaryrefslogtreecommitdiffstats
path: root/apps/menu.h
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2011-10-17 18:57:44 +0000
committerThomas Martitz <kugel@rockbox.org>2011-10-17 18:57:44 +0000
commita453bee2fa96ae9a618e3eec0bcd11fb5a79b952 (patch)
treeeaa8eeb95950e30748f42446b0fd4fcd78b27114 /apps/menu.h
parente347146b6268ece5b90bb6cf6fcb5c4e8f9b6a1e (diff)
downloadrockbox-a453bee2fa96ae9a618e3eec0bcd11fb5a79b952.tar.gz
rockbox-a453bee2fa96ae9a618e3eec0bcd11fb5a79b952.tar.bz2
rockbox-a453bee2fa96ae9a618e3eec0bcd11fb5a79b952.zip
Remake the sleep timer menu item, so that selecting it while the timer is running
just cancels that one (displayed text is changed accordingly and displays te remaining time). Selecting it again allows to set a new time. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30778 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/menu.h')
-rw-r--r--apps/menu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/menu.h b/apps/menu.h
index b5bab90981..2251de243c 100644
--- a/apps/menu.h
+++ b/apps/menu.h
@@ -198,7 +198,7 @@ int do_menu(const struct menu_item_ex *menu, int *start_selected,
static const struct menu_get_name_and_icon name##_ \
= {callback,text_callback,voice_callback,text_cb_data,icon}; \
static const struct menu_func name##__ = {{(void*)func}, param}; \
- static const struct menu_item_ex name = \
+ const struct menu_item_ex name = \
{ MT_FUNCTION_CALL|MENU_DYNAMIC_DESC|flags, \
{ .function = & name##__}, {.menu_get_name_and_icon = & name##_}};