diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-07-24 21:26:41 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-07-24 21:26:41 +0000 |
commit | 5b5003dcb12b0fe22f497a62d3024f3cf7a10fd1 (patch) | |
tree | effe16b48cdae25b0776df1d0ef87f73c36c5267 /apps/main_menu.c | |
parent | 6b8d020876f97a4af01d628ad0de251b103be01c (diff) | |
download | rockbox-5b5003dcb12b0fe22f497a62d3024f3cf7a10fd1.tar.gz rockbox-5b5003dcb12b0fe22f497a62d3024f3cf7a10fd1.zip |
New feature: clean shutdown if you press OFF twice in the file browser, or select "Shut
off" in the main menu. Players only have the menu option, due to lack of keys.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4940 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/main_menu.c')
-rw-r--r-- | apps/main_menu.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/main_menu.c b/apps/main_menu.c index 462d10df0d..991a1681de 100644 --- a/apps/main_menu.c +++ b/apps/main_menu.c | |||
@@ -49,7 +49,7 @@ | |||
49 | #ifdef HAVE_FMRADIO | 49 | #ifdef HAVE_FMRADIO |
50 | #include "radio.h" | 50 | #include "radio.h" |
51 | #endif | 51 | #endif |
52 | 52 | #include "misc.h" | |
53 | #include "lang.h" | 53 | #include "lang.h" |
54 | 54 | ||
55 | #ifdef HAVE_MAS3587F | 55 | #ifdef HAVE_MAS3587F |
@@ -324,7 +324,7 @@ bool main_menu(void) | |||
324 | int i = 0; | 324 | int i = 0; |
325 | 325 | ||
326 | /* main menu */ | 326 | /* main menu */ |
327 | struct menu_item items[8]; | 327 | struct menu_item items[9]; |
328 | 328 | ||
329 | items[i].desc = ID2P(LANG_BOOKMARK_MENU); | 329 | items[i].desc = ID2P(LANG_BOOKMARK_MENU); |
330 | items[i++].function = bookmark_menu; | 330 | items[i++].function = bookmark_menu; |
@@ -356,6 +356,9 @@ bool main_menu(void) | |||
356 | items[i].desc = ID2P(LANG_INFO); | 356 | items[i].desc = ID2P(LANG_INFO); |
357 | items[i++].function = info_menu; | 357 | items[i++].function = info_menu; |
358 | 358 | ||
359 | items[i].desc = ID2P(LANG_SHUTDOWN); | ||
360 | items[i++].function = clean_shutdown; | ||
361 | |||
359 | m=menu_init( items, i, NULL, NULL, NULL, NULL ); | 362 | m=menu_init( items, i, NULL, NULL, NULL, NULL ); |
360 | #ifdef HAVE_LCD_CHARCELLS | 363 | #ifdef HAVE_LCD_CHARCELLS |
361 | status_set_param(true); | 364 | status_set_param(true); |