summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2004-07-24 21:35:38 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2004-07-24 21:35:38 +0000
commitbdbb0ef4706aeb73ff2122f3864b6249e22e65b5 (patch)
treead4bc20b170cd977ef949000a919ceb36f9071b4
parent5b5003dcb12b0fe22f497a62d3024f3cf7a10fd1 (diff)
downloadrockbox-bdbb0ef4706aeb73ff2122f3864b6249e22e65b5.tar.gz
rockbox-bdbb0ef4706aeb73ff2122f3864b6249e22e65b5.zip
Replaced the poweroff confirmation string with a language ID, and removed the shutdown_screen() function for players
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4941 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/screens.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/apps/screens.c b/apps/screens.c
index c099822525..ff39258424 100644
--- a/apps/screens.c
+++ b/apps/screens.c
@@ -1092,6 +1092,7 @@ bool set_time_screen(char* string, struct tm *tm)
}
#endif
+#ifdef HAVE_RECORDER_KEYPAD
bool shutdown_screen(void)
{
int button;
@@ -1099,21 +1100,14 @@ bool shutdown_screen(void)
lcd_stop_scroll();
-#ifdef HAVE_LCD_CHARCELLS
- splash(0, true, "Push STOP to shut off");
-#else
- splash(0, true, "Push OFF to shut off");
-#endif
+ splash(0, true, str(LANG_CONFIRM_SHUTDOWN));
+
while(!done)
{
button = button_get_w_tmo(HZ*2);
switch(button)
{
-#ifdef HAVE_PLAYER_KEYPAD
- case BUTTON_STOP:
-#else
case BUTTON_OFF:
-#endif
clean_shutdown();
break;
@@ -1129,3 +1123,4 @@ bool shutdown_screen(void)
}
return false;
}
+#endif