diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-02-15 21:06:12 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-02-15 21:06:12 -0500 |
commit | 021264a6f50ae7e78875da1b8a61270aef0b2913 (patch) | |
tree | a4bcfeb9f76f9d8c7cb1e1ea16fecc862a2f012d /scripts | |
parent | 0f674ef4070714b2b2dbce50127fed01cb177399 (diff) | |
download | kutter-021264a6f50ae7e78875da1b8a61270aef0b2913.tar.gz kutter-021264a6f50ae7e78875da1b8a61270aef0b2913.tar.xz kutter-021264a6f50ae7e78875da1b8a61270aef0b2913.zip |
kconfig: Remove Save and Load buttons from "make menuconfig"
These two options don't provide any value and it is causing confustion
with some users. Remove the buttons.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/kconfig/lxdialog/menubox.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/kconfig/lxdialog/menubox.c b/scripts/kconfig/lxdialog/menubox.c index 11ae9ad7..355e14a6 100644 --- a/scripts/kconfig/lxdialog/menubox.c +++ b/scripts/kconfig/lxdialog/menubox.c @@ -154,14 +154,12 @@ static void print_arrows(WINDOW * win, int item_no, int scroll, int y, int x, */ static void print_buttons(WINDOW * win, int height, int width, int selected) { - int x = width / 2 - 28; + int x = width / 2 - 18; int y = height - 2; print_button(win, gettext("Select"), y, x, selected == 0); print_button(win, gettext(" Exit "), y, x + 12, selected == 1); print_button(win, gettext(" Help "), y, x + 24, selected == 2); - print_button(win, gettext(" Save "), y, x + 36, selected == 3); - print_button(win, gettext(" Load "), y, x + 48, selected == 4); wmove(win, y, x + 1 + 12 * selected); wrefresh(win); @@ -375,7 +373,7 @@ do_resize: case TAB: case KEY_RIGHT: button = ((key == KEY_LEFT ? --button : ++button) < 0) - ? 4 : (button > 4 ? 0 : button); + ? 2 : (button > 2 ? 0 : button); print_buttons(dialog, height, width, button); wrefresh(menu); |