newtCenteredWindow(width + 2, height + 2, title);
newtGridPlace(grid, 1, 1);
}
+
+void newtGridAddComponentsToForm(newtGrid grid, newtComponent form,
+ int recurse) {
+ int row, col;
+
+ for (col = 0; col < grid->cols; col++) {
+ for (row = 0; row < grid->rows; row++) {
+ if (grid->fields[col][row].type == NEWT_GRID_SUBGRID && recurse)
+ newtGridAddComponentsToForm(grid->fields[col][row].u.grid,
+ form, 1);
+ else
+ newtFormAddComponent(form, grid->fields[col][row].u.co);
+ }
+ }
+}
void newtGridFree(newtGrid grid, int recurse);
void newtGridGetSize(newtGrid grid, int * width, int * height);
void newtGridWrappedWindow(newtGrid grid, char * title);
+void newtGridAddComponentsToForm(newtGrid grid, newtComponent form,
+ int recurse);
/* convienve */
newtGrid newtButtonBar(char * button1, newtComponent * b1comp, ...);
%changelog
+* Fri Jan 16 1998 Erik Troan <ewt@redhat.com>
+
+- added changes from Bruce Perens
+ - small cleanups
+ - lets whiptail automatically resize windows
+- the order of placing a grid and adding components to a form no longer
+ matters
+- added newtGridAddComponentsToForm()
+
* Wed Oct 08 1997 Erik Troan <ewt@redhat.com>
- added newtWinTernary()