From 1ef6f0db0d03f26fdeca18e5223c8e6e8947f2a0 Mon Sep 17 00:00:00 2001 From: ewt Date: Wed, 24 Sep 1997 16:02:17 +0000 Subject: [PATCH] changed simple windows to use button bars --- windows.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/windows.c b/windows.c index d2e58ec..bda888f 100644 --- a/windows.c +++ b/windows.c @@ -31,18 +31,14 @@ static int newtvwindow(char * title, char * button1, char * button2, } free(buf); - b1 = newtButton(-1, -1, button1); t = newtTextbox(-1, -1, width, height, NEWT_TEXTBOX_WRAP); newtTextboxSetText(t, flowedText); free(flowedText); if (button2) { - b2 = newtButton(-1, -1, button2); - buttonGrid = newtCreateGrid(2, 1); - newtGridSetField(buttonGrid, 1, 0, NEWT_GRID_COMPONENT, b2, - 1, 0, 0, 0, 0, 0); + buttonGrid = newtButtonBar(button1, &b1, button2, &b2, NULL); } else { - buttonGrid = newtCreateGrid(1, 1); + buttonGrid = newtButtonBar(button1, &b1, NULL); } newtGridSetField(buttonGrid, 0, 0, NEWT_GRID_COMPONENT, b1, -- 2.47.2