summaryrefslogtreecommitdiffstats
path: root/gnu/lib
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-07-02 01:03:56 +0000
committerjkh <jkh@FreeBSD.org>1996-07-02 01:03:56 +0000
commit0e821da241cd152026b20c8292b396df8af5ab89 (patch)
tree823339e8c3a8eb81af9b17c7345b53eea09e72b5 /gnu/lib
parent0b35a3052f560b66a1a6b9a802eefbac4787de8c (diff)
downloadFreeBSD-src-0e821da241cd152026b20c8292b396df8af5ab89.zip
FreeBSD-src-0e821da241cd152026b20c8292b396df8af5ab89.tar.gz
Round out the examples a little better in showing custom buttons in operation
more than once.
Diffstat (limited to 'gnu/lib')
-rw-r--r--gnu/lib/libdialog/TESTS/menu3.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gnu/lib/libdialog/TESTS/menu3.c b/gnu/lib/libdialog/TESTS/menu3.c
index edc99d3..c91db64 100644
--- a/gnu/lib/libdialog/TESTS/menu3.c
+++ b/gnu/lib/libdialog/TESTS/menu3.c
@@ -13,7 +13,7 @@
* the author assume any responsibility for damages incurred with
* its use.
*
- * $Id: menu3.c,v 1.3 1996/04/16 12:17:24 jkh Exp $
+ * $Id: menu3.c,v 1.4 1996/04/18 13:21:26 jkh Exp $
*/
#include <stdio.h>
@@ -74,6 +74,8 @@ preinsure(dialogMenuItem *self, int is_selected)
/* prompt title checked fire sel */
static dialogMenuItem doit[] = {
+ { "Rah!" },
+ { "No way!" },
{ "Stop", "No, I'm not going to do that!", NULL, stop, NULL },
{ "Maybe", "I'm still thinking about it, don't rush me!", NULL, maybe, NULL, },
{ "Go", "Yes! Yes! I want to do it!", NULL, NULL, preinsure },
@@ -95,7 +97,7 @@ main(int argc, unsigned char *argv[])
retval = dialog_menu("Do you have the GUTS?",
"C'mon, macho man! Do you have what it takes to do something REALLY\n"
"dangerous and stupid? WHAT ARE YOU WAITING FOR?!",
- -1, -1, 3, -3, doit, NULL, NULL, NULL);
+ -1, -1, 3, -3, doit + 2, (char *)TRUE, NULL, NULL);
dialog_clear();
fprintf(stderr, "returned value for dialog_menu was %d\n", retval);
OpenPOWER on IntegriCloud