summaryrefslogtreecommitdiff
path: root/gnu/lib/libdialog
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1996-07-05 08:12:28 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1996-07-05 08:12:28 +0000
commit6a55af626db8654631c97ac7c8b4c4d1921106a3 (patch)
tree409c0e01301c3d6c027aafd9b2033983267c0b1c /gnu/lib/libdialog
parent0d6fc294fab85ec091333a1b2988c6098395a4ab (diff)
Merge.
Notes
svn path=/stable/2.1/; revision=16974
Diffstat (limited to 'gnu/lib/libdialog')
-rw-r--r--gnu/lib/libdialog/TESTS/menu3.c6
-rw-r--r--gnu/lib/libdialog/checklist.c1
-rw-r--r--gnu/lib/libdialog/menubox.c1
-rw-r--r--gnu/lib/libdialog/radiolist.c1
4 files changed, 7 insertions, 2 deletions
diff --git a/gnu/lib/libdialog/TESTS/menu3.c b/gnu/lib/libdialog/TESTS/menu3.c
index 446311c3a2a0..374ee2d00869 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.4 1996/04/18 13:21:26 jkh Exp $
+ * $Id: menu3.c,v 1.1.2.1 1996/05/03 23:32:28 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);
diff --git a/gnu/lib/libdialog/checklist.c b/gnu/lib/libdialog/checklist.c
index bc6bcba21e0b..cdc7114b5587 100644
--- a/gnu/lib/libdialog/checklist.c
+++ b/gnu/lib/libdialog/checklist.c
@@ -342,6 +342,7 @@ draw:
else if (st & DITEM_RECREATE) {
delwin(list);
delwin(dialog);
+ dialog_clear();
goto draw;
}
}
diff --git a/gnu/lib/libdialog/menubox.c b/gnu/lib/libdialog/menubox.c
index ef945af0ae6c..97b6bf71e17a 100644
--- a/gnu/lib/libdialog/menubox.c
+++ b/gnu/lib/libdialog/menubox.c
@@ -395,6 +395,7 @@ draw:
else if (status & DITEM_RECREATE && !(status & DITEM_LEAVE_MENU)) {
delwin(menu);
delwin(dialog);
+ dialog_clear();
goto draw;
}
}
diff --git a/gnu/lib/libdialog/radiolist.c b/gnu/lib/libdialog/radiolist.c
index 88fee25fd1cf..f1c21973d770 100644
--- a/gnu/lib/libdialog/radiolist.c
+++ b/gnu/lib/libdialog/radiolist.c
@@ -347,6 +347,7 @@ draw:
else if (st & DITEM_RECREATE) {
delwin(list);
delwin(dialog);
+ dialog_clear();
goto draw;
}
}