summaryrefslogtreecommitdiff
path: root/src/calcurse.h
diff options
context:
space:
mode:
authorBaptiste Jonglez <baptiste--git@jonglez.org>2012-05-13 14:09:21 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2012-05-14 19:31:13 +0200
commit13d6f8703bacfb8543c9d22c01db60e083650cad (patch)
treec7c9449a0627df8b17be995cfa02fa8ccca07711 /src/calcurse.h
parent7d4ef08345d51e59b045c3d8415a4f15bd758d3c (diff)
downloadcalcurse-13d6f8703bacfb8543c9d22c01db60e083650cad.zip
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>
Diffstat (limited to 'src/calcurse.h')
-rw-r--r--src/calcurse.h2
1 files changed, 1 insertions, 1 deletions
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);