diff options
author | Sedat Dilek <sedat.dilek@gmail.com> | 2013-06-16 12:43:04 -0400 |
---|---|---|
committer | Yann E. MORIN <yann.morin.1998@free.fr> | 2013-06-18 17:58:57 -0400 |
commit | ff7b0c2c2430b5b116108441cbd0680efbef68d1 (patch) | |
tree | 967c6c9081ddcca3dfdcf5b96f8c2f842dc1bb0a /scripts/kconfig | |
parent | 851f665725581d02d48ffbca50240cda44d698d4 (diff) |
kconfig/lxdialog: Use new mininimum resize definitions in conf_choice()
This is a cleanup which uses the proper (new) definitions and does
not change current behaviour.
Signed-off-by: Sedat Dilek <sedat.dilek@gmail.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
Yann had some more ideas on improvements:
"What would be nice is an improvement that scales the choice window to
the number of entries in the choice. If there are a lot of choice
entries, then the choice popup grows in height (but does not overflow
the screen of course). So, instead of seeing only 6 entries, we'd see
as much as possible in the current screen.
Ditto for the width: the popup adapts to the longest prompt (but does
not overflow the screen either, of course), so prompts are not
truncated."
NOTE: This patch requires [1].
[1] http://marc.info/?l=linux-kbuild&m=137128726917166&w=2
Diffstat (limited to 'scripts/kconfig')
-rw-r--r-- | scripts/kconfig/mconf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c index 387dc8daf7b2..2396c5be31ad 100644 --- a/scripts/kconfig/mconf.c +++ b/scripts/kconfig/mconf.c | |||
@@ -825,7 +825,9 @@ static void conf_choice(struct menu *menu) | |||
825 | dialog_clear(); | 825 | dialog_clear(); |
826 | res = dialog_checklist(prompt ? _(prompt) : _("Main Menu"), | 826 | res = dialog_checklist(prompt ? _(prompt) : _("Main Menu"), |
827 | _(radiolist_instructions), | 827 | _(radiolist_instructions), |
828 | 15, 70, 6); | 828 | MENUBOX_HEIGTH_MIN, |
829 | MENUBOX_WIDTH_MIN, | ||
830 | CHECKLIST_HEIGTH_MIN); | ||
829 | selected = item_activate_selected(); | 831 | selected = item_activate_selected(); |
830 | switch (res) { | 832 | switch (res) { |
831 | case 0: | 833 | case 0: |