diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2011-04-17 17:28:17 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2011-04-17 17:28:17 +0000 |
commit | 471ee1c85a9d20520815f2294ff60f4a68b1961f (patch) | |
tree | a6a1749470f0ef0127fdd632338023490a5fee50 /contrib/dialog/buttons.c | |
parent | 0082d50ef6e83de5022497c14421f2dcefb71537 (diff) | |
parent | 9904759c67ae2ed3f18aef4891fb52900bcfb03f (diff) | |
download | FreeBSD-src-471ee1c85a9d20520815f2294ff60f4a68b1961f.zip FreeBSD-src-471ee1c85a9d20520815f2294ff60f4a68b1961f.tar.gz |
Update dialog to version 1.1-20110302.
Diffstat (limited to 'contrib/dialog/buttons.c')
-rw-r--r-- | contrib/dialog/buttons.c | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/contrib/dialog/buttons.c b/contrib/dialog/buttons.c index 9c489dd7..d82c455 100644 --- a/contrib/dialog/buttons.c +++ b/contrib/dialog/buttons.c @@ -1,9 +1,9 @@ /* - * $Id: buttons.c,v 1.81 2010/04/28 20:57:29 tom Exp $ + * $Id: buttons.c,v 1.84 2011/01/19 00:27:53 tom Exp $ * - * buttons.c -- draw buttons, e.g., OK/Cancel + * buttons.c -- draw buttons, e.g., OK/Cancel * - * Copyright 2000-2007,2010 Thomas E. Dickey + * Copyright 2000-2010,2011 Thomas E. Dickey * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License, version 2.1 @@ -252,7 +252,7 @@ dlg_draw_buttons(WINDOW *win, int vertical, int limit) { - chtype save = getattrs(win); + chtype save = dlg_get_attrs(win); int n; int step = 0; int length; @@ -465,16 +465,7 @@ dlg_exit_label(void) int dlg_exit_buttoncode(int button) { - int result = DLG_EXIT_ERROR; - - if (dialog_vars.extra_button) { - result = dlg_ok_buttoncode(button); - } else if (button == 0) { - result = DLG_EXIT_OK; - } else if (button == 1 && dialog_vars.help_button) { - result = DLG_EXIT_HELP; - } - return result; + return dlg_ok_buttoncode(button); } const char ** |