diff options
author | Thomas Martitz <kugel@rockbox.org> | 2011-10-17 18:57:44 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2011-10-17 18:57:44 +0000 |
commit | a453bee2fa96ae9a618e3eec0bcd11fb5a79b952 (patch) | |
tree | eaa8eeb95950e30748f42446b0fd4fcd78b27114 /apps/menu.h | |
parent | e347146b6268ece5b90bb6cf6fcb5c4e8f9b6a1e (diff) | |
download | rockbox-a453bee2fa96ae9a618e3eec0bcd11fb5a79b952.tar.gz 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.h | 2 |
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, | |||
198 | static const struct menu_get_name_and_icon name##_ \ | 198 | static const struct menu_get_name_and_icon name##_ \ |
199 | = {callback,text_callback,voice_callback,text_cb_data,icon}; \ | 199 | = {callback,text_callback,voice_callback,text_cb_data,icon}; \ |
200 | static const struct menu_func name##__ = {{(void*)func}, param}; \ | 200 | static const struct menu_func name##__ = {{(void*)func}, param}; \ |
201 | static const struct menu_item_ex name = \ | 201 | const struct menu_item_ex name = \ |
202 | { MT_FUNCTION_CALL|MENU_DYNAMIC_DESC|flags, \ | 202 | { MT_FUNCTION_CALL|MENU_DYNAMIC_DESC|flags, \ |
203 | { .function = & name##__}, {.menu_get_name_and_icon = & name##_}}; | 203 | { .function = & name##__}, {.menu_get_name_and_icon = & name##_}}; |
204 | 204 | ||