Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp552109lqh; Sat, 4 May 2024 11:34:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXTM+VivO86B+9pGu5IijZx9cG+ad9An8vlKM4YSLs34WQPevKvB/jH1L0cttoi1WdLFe5PAjhh2N8BY3sBlgyLrUlQl29aiqjJuPG+pQ== X-Google-Smtp-Source: AGHT+IEyUVTQJvp/frZPwGdqfTtgkaTNNzKxbcuq8QJbc9I+c1ssEcncKlBXaVVVBzEMHpKH/wQo X-Received: by 2002:a05:6a00:4b03:b0:6ed:caf6:6e4b with SMTP id kq3-20020a056a004b0300b006edcaf66e4bmr6129336pfb.18.1714847655924; Sat, 04 May 2024 11:34:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714847655; cv=pass; d=google.com; s=arc-20160816; b=BmuvWEOsMJMsL3B/DRsCjfY/s8atVwUcEHpZjOzUjMYLCyUOYdDrz2kPmH6gkB4Q7S rYUnESQT55Ly4vj3ILJcZgAJ1cGdkibL++q/sYNxIhysKFYPXRjykPi1fLEDF1IJJ6NO mH0CESN5AQAYIIO0IyKSZhoVC9gwHP2wRuAuT1nzPrwXgZBOLUfYmBLeZ9T4I7MsCsEs R3RZMTPf4QiBlcjJJd3SvEZuJF+gCrvQA1GWK4BN1FoxOK12wQ5ky/67IV6hXT2hB/DC tBtNBpkDhlFEjLhhmBc4T+Vp/Fbu4Zg+ef1BtP/dM4oB5ZXo8kLZgPZNk4rOPFa3lEMW ngXQ== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=cZJ3TeeVOlC9y7l/UluJQNgZfDgADEHdQgruEnC9TLQ=; fh=oQbvuNnOUeIuBT5siQdg+euUHNNdn+CeEwAg69/1RSo=; b=lSu+UFtCPgjk7XQkrkpy0oQEzFqjkNEiFTzjx7nP8gZXNGBkcXmpBwe/el+zSW1dPz fT30VHMMIRBjDgdAjyHjPO79OfCIFCRKdXXZJ3g0JVKKaRJzl2MXpg9nEaJ9FUm++ll2 Hrs45PmJkTnrigqm4oARHlBDklpa4/A2E/xypPeSe2OpZVHulrgHg30QUeh6pbcz7ucC lwotF2Zb+K7hsNL7veSY2DwPl/tGBrOTxE1MQFNhMt8rgTPGh4PMzqVRT/XvZl9B6BhQ NU7KFqqfzAiadaFwDPrXpKHbM3nDyWOyfL3z5C492B6l9p+s5x7yzU7cTpcYHJahD9XY CWQg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jbM8Sy3A; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-168787-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168787-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id i133-20020a639d8b000000b005e83b65bc52si5422140pgd.204.2024.05.04.11.34.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 May 2024 11:34:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168787-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jbM8Sy3A; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-168787-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168787-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 879C9281E3D for ; Sat, 4 May 2024 18:34:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AF323762EB; Sat, 4 May 2024 18:34:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jbM8Sy3A" 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 D1E7D1DDF6; Sat, 4 May 2024 18:34:08 +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=1714847648; cv=none; b=FnEsCspkVlvE72edKfjMCZbQE4tYBZ3K+BVYWgcqh4jioHr4MFZvF4SUwq3V8Ms3rKMVBxG9xltxWjRkZipDU7f0zCb7KoGsf/gI1XoMPBEANZajqPMAbclqA01zJgPrzN97Je5fZjxU5j7IlpPlU6yvsKR+VYfnE5CV2hFD/pA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714847648; c=relaxed/simple; bh=6HftrSu8b1ezVHLQUken8pjwxsgWWqlDrOx3oimesB8=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=bKDDfIEKWbkbd51LKCXb5vko66vy+xjAcmjP0qUaeTV3qYEFLNjDdGahyyQkYrkbL7ww/ZxR7mXJDwNGCcXMRz4mzGaeU/nMlI6EpdbaR3ydkzn9upgokcfND8CLjm1ZGhMnV6Jqdhuf0RYDp7yrHCLez//sqNM5eCzKE2cWL8w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jbM8Sy3A; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 867F5C4AF14; Sat, 4 May 2024 18:34:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714847648; bh=6HftrSu8b1ezVHLQUken8pjwxsgWWqlDrOx3oimesB8=; h=From:To:Cc:Subject:Date:From; b=jbM8Sy3AC1Tk8X7gAqQjhvY7QHGeD68MEbLd5IErSc8ps7z+CCJc5u62tNBYIuKQP zT0brJLuDRMEHsaH2kn5d/t/UMwUQCFt4wuDvxfXwDSF+hJi4yvqvYyCsO0THuT4Vk 4PSAjsvnsds1WwfvHIALpAhwcQ55AP2dGWLaBAGmLjT+UtgX1x9MiGMvGlfFpIsuiX E1zbrqwxQ55Li3+kxTOs2qgw27ZJU5+lAU7XwGKqt4dsI2s+XlWDBiK9jG6it/anlV Yb0swhaegfUmKHaxIxWbiQSh0PpRBhAvRrOX6By88nlFD3lRksbp8LHGIUdw2hPMGF xyZQSVKcTjPcA== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada Subject: [PATCH 01/10] kconfig: gconf: redraw pane correctly after loading a config file Date: Sun, 5 May 2024 03:33:24 +0900 Message-Id: <20240504183333.2031860-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Every time a config file is loaded (either by clicking the "Load" button or selecting "File" -> "Load" from the menu), a new tree structure is appended to the widget. The current tree needs to be cleared by calling gtk_tree_store_clear(). Signed-off-by: Masahiro Yamada --- scripts/kconfig/gconf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/kconfig/gconf.c b/scripts/kconfig/gconf.c index 67a27c497c40..12b55f2e369b 100644 --- a/scripts/kconfig/gconf.c +++ b/scripts/kconfig/gconf.c @@ -487,7 +487,7 @@ load_filename(GtkFileSelection * file_selector, gpointer user_data) if (conf_read(fn)) text_insert_msg("Error", "Unable to load configuration !"); else - display_tree(&rootmenu); + display_tree_part(); } void on_load1_activate(GtkMenuItem * menuitem, gpointer user_data) @@ -1399,6 +1399,8 @@ static void display_tree_part(void) display_tree(current); else if (view_mode == SPLIT_VIEW) display_tree(browsed); + else if (view_mode == FULL_VIEW) + display_tree(&rootmenu); gtk_tree_view_expand_all(GTK_TREE_VIEW(tree2_w)); } -- 2.40.1