From: ewt Date: Wed, 24 Sep 1997 16:02:17 +0000 (+0000) Subject: changed simple windows to use button bars X-Git-Tag: r0-12~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1ef6f0db0d03f26fdeca18e5223c8e6e8947f2a0;p=thirdparty%2Fnewt.git changed simple windows to use button bars --- 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,