Factorize boolean user prompting.
Introduce a new `status_ask_bool()` function, and use it where applicable. This greatly reduces code duplication, and will allow handling special events (resize, user escape) much more uniformely. Signed-off-by: Baptiste Jonglez <baptiste--git@jonglez.org> Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
committed by
Lukas Fleischer
parent
7d4ef08345
commit
13d6f8703b
@@ -895,8 +895,8 @@ void free_user_data (void);
|
||||
void fatalbox (const char *);
|
||||
void warnbox (const char *);
|
||||
void status_mesg (const char *, const char *);
|
||||
void status_mesg_yesno (const char *);
|
||||
int status_ask_choice (const char *, const char[], int);
|
||||
int status_ask_bool (const char *);
|
||||
int status_ask_simplechoice (const char *, const char *[], int);
|
||||
void erase_window_part (WINDOW *, int, int, int, int);
|
||||
WINDOW *popup (int, int, int, int, const char *, const char *, int);
|
||||
|
||||
Reference in New Issue
Block a user