Lines Matching defs:status
32 print_item (WINDOW * win, const char *item, int status,
46 wprintw (win, "[%c]", status ? 'X' : ' ');
48 wprintw (win, "(%c)", status ? 'X' : ' ');
126 int key = 0, button = 0, choice = 0, scroll = 0, max_choice, *status;
131 /* Allocate space for storing item on/off status */
132 if ((status = malloc (sizeof (int) * item_no)) == NULL) {
139 /* Initializes status */
141 status[i] = items[i]->selected;
142 if (!choice && status[i])
212 status[i+scroll], i, i == choice);
242 status[scroll], 0, FALSE);
249 status[scroll], 0, TRUE);
268 status[scroll + max_choice - 1],
276 status[scroll + max_choice - 1],
292 status[scroll + choice], choice, FALSE);
296 status[scroll + choice], choice, TRUE);
307 free (status);
324 status[scroll + choice] = !status[scroll + choice];
327 wprintw (list, "[%c]", status[scroll + choice] ? 'X' : ' ');
329 if (!status[scroll + choice]) {
331 status[i] = 0;
332 status[scroll + choice] = 1;
335 status[scroll + i], i, i == choice);
342 items[i]->selected = status[i];
346 free (status);
361 free (status);