From patchwork Mon Dec 17 14:56:14 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: wang yanqing X-Patchwork-Id: 1887451 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id DD9073FCD5 for ; Mon, 17 Dec 2012 14:56:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752827Ab2LQO4K (ORCPT ); Mon, 17 Dec 2012 09:56:10 -0500 Received: from mail-da0-f46.google.com ([209.85.210.46]:45582 "EHLO mail-da0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752605Ab2LQO4H (ORCPT ); Mon, 17 Dec 2012 09:56:07 -0500 Received: by mail-da0-f46.google.com with SMTP id p5so2862969dak.19 for ; Mon, 17 Dec 2012 06:56:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mail-followup-to:mime-version :content-type:content-disposition:user-agent; bh=CmCae5+Y8+maX6PIhnqsCWF8LFC1wbpz91hWo9qDdAM=; b=mrTmIMUdkv4tEOd/lgiYkcN7UsjUJv0vfhBwDNTZb42fD+g1GOpwS9b0UGqdt9SY1L qFLgn0nnVCAQZr6GMrClBeDabDO+pgDc665ZiFpbDFehUg1GZSAEl6LH8NIagtjquYZj zisImaLcJp+i5QWLBCYnX2LEj7yXuuwCY2hDmdmKIlqRFUGUlOCyhQr1y+NmyMcuFHrX hWzf9Y7Kj9/dfk4QN9xkTvRw7LNpBrvfHt0Y3CiQtLccj0saI396CExsvQTgQwBgEdtT pB6+4YVH8pkuk8HNmbo9wDzd3ARZ5/uBEYsD72ZKs2GqaUUiGa/o7n8XMKLY10iLc/wz fvEA== Received: by 10.66.81.68 with SMTP id y4mr27271516pax.66.1355756167137; Mon, 17 Dec 2012 06:56:07 -0800 (PST) Received: from udknight.localhost ([218.66.137.4]) by mx.google.com with ESMTPS id is6sm8310314pbc.55.2012.12.17.06.55.44 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 17 Dec 2012 06:56:06 -0800 (PST) Received: from udknight.localhost (udknight.localhost [127.0.0.1]) by udknight.localhost (8.14.4/8.14.4) with ESMTP id qBHEuEp2017468; Mon, 17 Dec 2012 22:56:14 +0800 Received: (from root@localhost) by udknight.localhost (8.14.4/8.14.4/Submit) id qBHEuECN017465; Mon, 17 Dec 2012 22:56:14 +0800 Date: Mon, 17 Dec 2012 22:56:14 +0800 From: Wang YanQing To: mmarek@suse.cz Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, rdunlap@xenotime.net, bp@alien8.de, yann.morin.1998@free.fr, sakiwit@gmail.com, lacombar@gmail.com, lucas.demarchi@profusion.mobi, dave@gnu.org, paul.gortmaker@windriver.com, crquan@gmail.com, bpoirier@suse.de Subject: [PATCH 2/2] menuconfig: Get rid of the top-level entries for "Load an Alternate/Save an Alternate" Message-ID: <20121217145614.GC17427@udknight> Mail-Followup-To: Wang YanQing , mmarek@suse.cz, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, rdunlap@xenotime.net, bp@alien8.de, yann.morin.1998@free.fr, sakiwit@gmail.com, lacombar@gmail.com, lucas.demarchi@profusion.mobi, dave@gnu.org, paul.gortmaker@windriver.com, crquan@gmail.com, bpoirier@suse.de MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org Now we have Load/Save buttons to do the Load/Save in the convenient place, so we can drop the top-level entries. Signed-off-by: Wang YanQing Reviewed-by: "Yann E. MORIN" Tested-by: "Yann E. MORIN" --- scripts/kconfig/mconf.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c index c074f8a..0ac1524 100644 --- a/scripts/kconfig/mconf.c +++ b/scripts/kconfig/mconf.c @@ -593,14 +593,6 @@ static void conf(struct menu *menu, struct menu *active_menu) build_conf(menu); if (!child_count) break; - if (menu == &rootmenu) { - item_make("--- "); - item_set_tag(':'); - item_make(_(" Load an Alternate Configuration File")); - item_set_tag('L'); - item_make(_(" Save an Alternate Configuration File")); - item_set_tag('S'); - } dialog_clear(); res = dialog_menu(prompt ? _(prompt) : _("Main Menu"), _(menu_instructions), @@ -637,12 +629,6 @@ static void conf(struct menu *menu, struct menu *active_menu) case 's': conf_string(submenu); break; - case 'L': - conf_load(); - break; - case 'S': - conf_save(); - break; } break; case 2: