kconfig: gconf: avoid hardcoding model2 in on_treeview2_cursor_changed()
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 24 Jun 2025 15:05:20 +0000 (00:05 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 2 Jul 2025 01:36:14 +0000 (10:36 +0900)
commitcae9cdbcd9af044810bcceeb43a87accca47c71d
tree9ae31e6352e6432ba5d6510b0bf50b9c994ce0e1
parent3beae8659513550b6b82a4ccdc4d25be9497f208
kconfig: gconf: avoid hardcoding model2 in on_treeview2_cursor_changed()

The on_treeview2_cursor_changed() handler is connected to both the left
and right tree views, but it hardcodes model2 (the GtkTreeModel of the
right tree view). This is incorrect. Get the associated model from the
view.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/gconf.c