The const police strikes back. Also only include the F3 quickscreen for units with an F3 button.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8041 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2005-11-22 08:44:53 +00:00
parent 6919d1e3b3
commit 91f6c3d604

View file

@ -552,14 +552,14 @@ bool quick_screen_quick(void)
[0]={ STR(LANG_OFF) },
[1]={ STR(LANG_ON) }
};
struct opt_items bottom_items[] = {
static const struct opt_items bottom_items[] = {
[SHOW_ALL]={ STR(LANG_FILTER_ALL) },
[SHOW_SUPPORTED]={ STR(LANG_FILTER_SUPPORTED) },
[SHOW_MUSIC]={ STR(LANG_FILTER_MUSIC) },
[SHOW_PLAYLIST]={ STR(LANG_FILTER_PLAYLIST) },
[SHOW_ID3DB]={ STR(LANG_FILTER_ID3DB) }
};
struct opt_items right_items[] = {
static const struct opt_items right_items[] = {
[REPEAT_OFF]={ STR(LANG_OFF) },
[REPEAT_ALL]={ STR(LANG_REPEAT_ALL) },
[REPEAT_ONE]={ STR(LANG_REPEAT_ONE) },
@ -611,6 +611,7 @@ bool quick_screen_quick(void)
return(res);
}
#ifdef BUTTON_F3
void quick_screen_f3_apply(struct gui_quickscreen *qs)
{
global_settings.scrollbar=int_to_bool(option_select_get_selected(qs->left_option));
@ -629,11 +630,11 @@ bool quick_screen_f3(void)
struct option_select left_option;
struct option_select bottom_option;
struct option_select right_option;
struct opt_items onoff_items[] = {
static const struct opt_items onoff_items[] = {
[0]={ STR(LANG_OFF) },
[1]={ STR(LANG_ON) }
};
struct opt_items yesno_items[] = {
static const struct opt_items yesno_items[] = {
[0]={ STR(LANG_SET_BOOL_NO) },
[1]={ STR(LANG_SET_BOOL_YES) }
};
@ -662,7 +663,8 @@ bool quick_screen_f3(void)
settings_save();
return(res);
}
#endif
#endif /* BUTTON_F3 */
#endif /* CONFIG_KEYPAD in (RECORDER_PAD |IRIVER_H100_PAD | IRIVER_H300_PAD) */
#if defined(HAVE_CHARGING) || defined(SIMULATOR)
void charging_splash(void)