From 13d6f8703bacfb8543c9d22c01db60e083650cad Mon Sep 17 00:00:00 2001 From: Baptiste Jonglez Date: Sun, 13 May 2012 14:09:21 +0200 Subject: 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 Signed-off-by: Lukas Fleischer --- src/calcurse.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/calcurse.h') diff --git a/src/calcurse.h b/src/calcurse.h index e26976a..5165f25 100644 --- a/src/calcurse.h +++ b/src/calcurse.h @@ -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); -- cgit v1.2.3-54-g00ecf