yesno.c (e5451c8f8330e03ad3cfa16048b4daf961af434f) | yesno.c (694c49a7c01cc87194be40cb26404b58b68c291c) |
---|---|
1/* 2 * yesno.c -- implements the yes/no box 3 * 4 * ORIGINAL AUTHOR: Savio Lam (lam836@cs.cuhk.hk) 5 * MODIFIED FOR LINUX KERNEL CONFIG BY: William Roadcap (roadcap@cfw.com) 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License --- 15 unchanged lines hidden (view full) --- 24/* 25 * Display termination buttons 26 */ 27static void print_buttons(WINDOW * dialog, int height, int width, int selected) 28{ 29 int x = width / 2 - 10; 30 int y = height - 2; 31 | 1/* 2 * yesno.c -- implements the yes/no box 3 * 4 * ORIGINAL AUTHOR: Savio Lam (lam836@cs.cuhk.hk) 5 * MODIFIED FOR LINUX KERNEL CONFIG BY: William Roadcap (roadcap@cfw.com) 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License --- 15 unchanged lines hidden (view full) --- 24/* 25 * Display termination buttons 26 */ 27static void print_buttons(WINDOW * dialog, int height, int width, int selected) 28{ 29 int x = width / 2 - 10; 30 int y = height - 2; 31 |
32 print_button(dialog, gettext(" Yes "), y, x, selected == 0); 33 print_button(dialog, gettext(" No "), y, x + 13, selected == 1); | 32 print_button(dialog, " Yes ", y, x, selected == 0); 33 print_button(dialog, " No ", y, x + 13, selected == 1); |
34 35 wmove(dialog, y, x + 1 + 13 * selected); 36 wrefresh(dialog); 37} 38 39/* 40 * Display a dialog box with two buttons - Yes and No 41 */ --- 73 unchanged lines hidden --- | 34 35 wmove(dialog, y, x + 1 + 13 * selected); 36 wrefresh(dialog); 37} 38 39/* 40 * Display a dialog box with two buttons - Yes and No 41 */ --- 73 unchanged lines hidden --- |