From nobody Wed Oct 8 12:35:02 2025 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 DAAB523ABB0; Sun, 29 Jun 2025 18:46:02 +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=1751222763; cv=none; b=R8xqT/+qavRV0ymMG5LDYFlaQfjx6d9dIPeJYmAAojEUWsFEa6R8+pYVvg7ysPLSVPstOLUm7qgRksydwQHChZ94RyUD84OtKTSgTGRDFWL2o97Zy7bdRd52z6GPzfsqbpFg5LfZi8fgMFB8oPbh9lC5Y8+aCcOoV/LOwrp1Lk8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751222763; c=relaxed/simple; bh=WdrN3yT3caKcROu27pF5IqWbxdrO1B5dCUQziQ/YDyY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fiXiYrAaZyuadRH7V94diVVybaCfb3ZNgSL940/5S4eCIhLqFL+b6qdqgqRdvUaXqf+uELuoBodktMWHuFSVdHhZFSZ5+QOwbfU84MfZpw2G8T5xmVJwvAECwxm4W4E2UPVHNMIEK783cCvIHpQggq37vSZAxSo0OB2cyz+SsYg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=sMuoX0lX; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sMuoX0lX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F0963C4CEEF; Sun, 29 Jun 2025 18:46:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1751222762; bh=WdrN3yT3caKcROu27pF5IqWbxdrO1B5dCUQziQ/YDyY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sMuoX0lXdTNQauFlJWa9XrnGGbz2zK2e/qR82d1WNfGUaFYn++C5y4r5H5vlVc7wh yN0B2Mg3IOPaxt4DQGkTlxLsamDb+Uyj+VvdvQJI7Pp3384TA/p4W3ZBumjbDYfMwq LrUgauve5mgXJBaVTvKRxkoebJIltDManNIHijaFRXcabNYWIFDhOc2b88RGmVF1bN F8qMWA+iLs97p1aqV1aMIeoU1uLs/0L0Tm2MRdlQ68NNDFx6Fz3Y1kbf0oCQbkvvBw hZ7LzV3dGHyWnf84BIGAjncQ1NFRfTxZuj87dN1ytsO1xxIgvdW4T8ScjNT9zBR1rJ H1NkmUFtCY8Uw== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH v2 3/9] kconfig: gconf: rename display_tree_part() Date: Mon, 30 Jun 2025 03:43:29 +0900 Message-ID: <20250629184554.407497-4-masahiroy@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250629184554.407497-1-masahiroy@kernel.org> References: <20250629184554.407497-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: quoted-printable Content-Type: text/plain; charset="utf-8" This function recreates the tree store to update the menu content. Rename it to recreate_tree() to better reflect its purpose. Signed-off-by: Masahiro Yamada --- Changes in v2: - Rename to recreate_tree() scripts/kconfig/gconf.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/kconfig/gconf.c b/scripts/kconfig/gconf.c index 8b19298eef61..bc25924a1adf 100644 --- a/scripts/kconfig/gconf.c +++ b/scripts/kconfig/gconf.c @@ -57,7 +57,7 @@ enum { }; =20 static void display_tree(GtkTreeStore *store, struct menu *menu); -static void display_tree_part(void); +static void recreate_tree(void); =20 static void conf_changed(bool dirty) { @@ -279,7 +279,7 @@ static void set_view_mode(enum view_mode mode) browsed =3D menu_get_parent_menu(selected) ?: &rootmenu; else browsed =3D &rootmenu; - display_tree_part(); + recreate_tree(); select_menu(GTK_TREE_VIEW(tree2_w), selected); gtk_widget_set_sensitive(single_btn, FALSE); break; @@ -556,7 +556,7 @@ static void on_back_clicked(GtkButton *button, gpointer= user_data) ptype =3D browsed->prompt ? browsed->prompt->type : P_UNKNOWN; if (ptype !=3D P_MENU) browsed =3D browsed->parent; - display_tree_part(); + recreate_tree(); =20 if (browsed =3D=3D &rootmenu) gtk_widget_set_sensitive(back_btn, FALSE); @@ -793,7 +793,7 @@ static gboolean on_treeview2_button_press_event(GtkWidg= et *widget, if (ptype =3D=3D P_MENU && view_mode =3D=3D SINGLE_VIEW && col =3D=3D CO= L_OPTION) { // goes down into menu browsed =3D menu; - display_tree_part(); + recreate_tree(); gtk_widget_set_sensitive(back_btn, TRUE); } else if (col =3D=3D COL_OPTION) { toggle_sym_value(menu); @@ -898,7 +898,7 @@ static gboolean on_treeview1_button_press_event(GtkWidg= et *widget, =20 if (menu->type =3D=3D M_MENU) { browsed =3D menu; - display_tree_part(); + recreate_tree(); } =20 gtk_tree_view_set_cursor(view, path, NULL, FALSE); @@ -960,7 +960,7 @@ static void display_tree(GtkTreeStore *store, struct me= nu *menu) } =20 /* Display a part of the tree starting at current node (single/split view)= */ -static void display_tree_part(void) +static void recreate_tree(void) { gtk_tree_store_clear(tree2); display_tree(tree2, browsed); --=20 2.43.0