mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
Pull yesno_pop out of the radio code as it is a nice simple resuasble yesno api worth reusing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30183 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
2f620b8af3
commit
a7c37ea2d0
4 changed files with 18 additions and 15 deletions
|
|
@ -154,19 +154,6 @@ int radio_current_frequency(void)
|
|||
return curr_freq;
|
||||
}
|
||||
|
||||
/* Function to manipulate all yesno dialogues.
|
||||
This function needs the output text as an argument. */
|
||||
bool yesno_pop(const char* text)
|
||||
{
|
||||
int i;
|
||||
const char *lines[]={text};
|
||||
const struct text_message message={lines, 1};
|
||||
bool ret = (gui_syncyesno_run(&message,NULL,NULL)== YESNO_YES);
|
||||
FOR_NB_SCREENS(i)
|
||||
screens[i].clear_viewport();
|
||||
return ret;
|
||||
}
|
||||
|
||||
void radio_init(void)
|
||||
{
|
||||
tuner_init();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue