From c44ca632330fe21bf6e88eae1b432f8b4a4b6496 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Mon, 27 Oct 2008 14:14:05 +0000 Subject: - Print helptexts of choices. If a choice (but not it's children) has help, print that. If a choice's child has no help, print parents help. --- extra/config/kconfig-to-uclibc.patch.gz | Bin 5699 -> 5816 bytes extra/config/mconf.c | 7 +++++-- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'extra') diff --git a/extra/config/kconfig-to-uclibc.patch.gz b/extra/config/kconfig-to-uclibc.patch.gz index 01c5d34f8..58c41730e 100644 Binary files a/extra/config/kconfig-to-uclibc.patch.gz and b/extra/config/kconfig-to-uclibc.patch.gz differ diff --git a/extra/config/mconf.c b/extra/config/mconf.c index d7314f3a3..18583bd43 100644 --- a/extra/config/mconf.c +++ b/extra/config/mconf.c @@ -704,9 +704,12 @@ static void show_help(struct menu *menu) { if (sym->name) { str_printf(&help, "%s:\n\n", sym->name); - str_append(&help, _(menu_get_help(menu))); - str_append(&help, "\n"); } + str_append(&help, _(menu_get_help(menu))); + str_append(&help, "\n"); + } else if (menu_has_help(sym->prop->menu->parent)) { + str_append(&help, _(menu_get_help(sym->prop->menu->parent))); + str_append(&help, "\n"); } else { str_append(&help, nohelp_text); } -- cgit v1.2.3