self->scale = newtScale(0, 0, cols, total);
if (self->scale == NULL)
goto out_free_form;
- newtFormAddComponents(self->form, self->scale, NULL);
+ newtFormAddComponent(self->form, self->scale);
newtRefresh();
}
if (listbox == NULL)
goto out_destroy_form;
- newtFormAddComponents(form, listbox, NULL);
+ newtFormAddComponent(form, listbox);
for (i = 0; i < argc; ++i) {
int len = strlen(argv[i]);
newtCenteredWindow(max_line_len + 2, rows - 5, self->sym->name);
form = newt_form__new();
- newtFormAddComponents(form, tree, NULL);
+ newtFormAddComponent(form, tree);
newtFormRun(form, &es);
newtFormDestroy(form);