Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp140682lqj; Sat, 1 Jun 2024 11:21:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU6bL2innFG0BOFfAbt2yeVxhGa7YCwoNBatUxHFT1hdxh8E7Jt3Je2wxuSINcGG92DQ2+pMu9ms+TuAkNn25+iWGPU8wGjXmXFX3mEaw== X-Google-Smtp-Source: AGHT+IEX1omhaAgCeAfzW6uFwkYXyOPGYBuLslfw82hSAN3u29VP38DEGh/FoPwSRk132ibNyg4S X-Received: by 2002:a50:a6dd:0:b0:57a:30fb:57e with SMTP id 4fb4d7f45d1cf-57a3649201amr3469355a12.36.1717266071390; Sat, 01 Jun 2024 11:21:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717266071; cv=pass; d=google.com; s=arc-20160816; b=mQSLGyjYYUGNUgVT36+tWC58ckvOoHB7xpl7pTOOwlmK3tfDfeBCJ4kasdDFZyLcDR B8GIXFAHaExT+TcuLci7lHoQabD1Vo+rbQHebOkeXnBuh8RLYTJjSTygj8FeNiDFEc0a FLq4rHn6+Un4OAiAVslw58PZrLlSISAeIvSsynw/WlpiBJtGONJbAgDltOZ1W4D0jnxZ +OW7/AuR0OigbpztGNrOjmqsXgiHOwB8XGr0qyyrYsRrHqPm7RkMcPKOa6Gn09vYyc4R JhOWM9rb5B4GcpSlnoulF+lSnbRFPtYtzC7UhWMKs/93aVJs85jotDzEzL6i72vjPBTD i35w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=DMHpvm/vPNmp8vZZJyWzn+vflHOUBK1UfGgfN62X2wQ=; fh=oQbvuNnOUeIuBT5siQdg+euUHNNdn+CeEwAg69/1RSo=; b=Jjqy2hfBczXmHnUzlBrTKpSGZaRvDlKHhOqm0idypHFYB/dhf+Hp3zQxzELeco86Py xSkNM14cC6BKthtQpdmmYDaAAI5HOA01W4seYJZnJg4O5hdMQ0F5blRQblgGDxKMdk97 6I2eA7cu2IEYCo6n5LttOHAIGpv4kIjF3DYdTY1A2Wd2if1n8cGvxNCUFJa2HHv8ka9q nzWlMpYVuHX8y0DnUsvGHDR+PO8D/hAIsiXatqInVTsSmNC0n86ve2rYwsy66hZnO4RO 7UDAY+3a0ijJdhNPxC+y3kuV4BACF474ILwdjggrIvwLjyHIGuenRXJC1kKmF1WPhbNP fzug==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=vKYs766B; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-197977-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197977-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57a31c62c88si2282277a12.224.2024.06.01.11.21.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Jun 2024 11:21:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197977-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=vKYs766B; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-197977-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197977-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 221AC1F21B44 for ; Sat, 1 Jun 2024 18:21:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D227A1552EF; Sat, 1 Jun 2024 18:20:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="vKYs766B" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 02A4B154C11; Sat, 1 Jun 2024 18:20:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717266052; cv=none; b=uEXx1W5RHi65XITgPQzFJljXxtTvLJPb2fiChzrS7vBDuVoYtMoBPu4rfZQTGQ8Uea3DGwxdn1MjrjMzmrEornoXMOshwQL9wwaHmVTr6PFvoiCdLB+pFwzYX83rN+SmUIQzEvFpKv9RW9bCQ6PFeTq7H/61t0ABvJ7CGbp2RhM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717266052; c=relaxed/simple; bh=Fa0ZdWT04XOLV0C1EfvYkbNp8hQC0YdrqUUBf3fi3LQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=jlLFgbP93+xeX0azf7l2GHVxWXN0iO+IkIMOc6NpXTpqurjl4kzRj3p73s2ClMjbPNdPI3Pg3pyPYZeF6JMeGvDrZ3clRTZTyiL4bD32FF8muNqf7CW/gcZeIINA/wlNahXhPzs3B5vlnzr9RgIeXaOiMVZxCs/xCqE887s8CFA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=vKYs766B; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 21BD5C116B1; Sat, 1 Jun 2024 18:20:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717266051; bh=Fa0ZdWT04XOLV0C1EfvYkbNp8hQC0YdrqUUBf3fi3LQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vKYs766BerGvHqBbKZ08uuTPATpRqpnvr+V9M7M/4WV2oBXKf3M3KTD5X0LO2dp6P GUon2748+68oYULkpfCzF04fj+xiBf9tANhAw1t74cNnwFC5yblmv1ZNHUyIQEo6RG hfWVkRV6sP15F09UhzEaGXIcQgBrKC/+imi2VKWqtDnBdEbHmEZclPKEWGY0zXhB1B fRW+eQs0NbaBgiOHP+Xp7ypLfPnONWCankttt9Z90AmBXT5e1+NzdcuP0jhtglmHcT 2th7F3EC0im731l9OaE9d369bnJj0QGq1+peKJx+hkSdwECsGl+PQE9NTBnxO+mG48 /R5G9T44MVdVA== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada Subject: [PATCH 3/6] kconfig: gconf: give a proper initial state to the Save button Date: Sun, 2 Jun 2024 03:20:40 +0900 Message-Id: <20240601182043.876249-3-masahiroy@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240601182043.876249-1-masahiroy@kernel.org> References: <20240601182043.876249-1-masahiroy@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Currently, the initial state of the "Save" button is always active. If none of the CONFIG options are changed while loading the .config file, the "Save" button should be greyed out. This can be fixed by calling conf_read() after widget initialization. Signed-off-by: Masahiro Yamada --- scripts/kconfig/gconf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/kconfig/gconf.c b/scripts/kconfig/gconf.c index cc400ffe6615..e04dbafd3add 100644 --- a/scripts/kconfig/gconf.c +++ b/scripts/kconfig/gconf.c @@ -1422,7 +1422,6 @@ int main(int ac, char *av[]) conf_parse(name); fixup_rootmenu(&rootmenu); - conf_read(NULL); /* Load the interface and connect signals */ init_main_window(glade_file); @@ -1430,6 +1429,8 @@ int main(int ac, char *av[]) init_left_tree(); init_right_tree(); + conf_read(NULL); + switch (view_mode) { case SINGLE_VIEW: display_tree_part(); -- 2.40.1