[PATCH 60/66] kconfig: gconf: use gtk_dialog_get_content_area() accessor

From: Masahiro Yamada
Date: Tue Jun 24 2025 - 11:29:11 EST


GTK 3 removes many implementation details and struct members from its
public headers.

Use the gtk_check_menu_item_get_active() accessor.

[1]: https://gitlab.gnome.org/GNOME/gtk/-/blob/2.24.33/docs/reference/gtk/compiling.sgml#L85

Signed-off-by: Masahiro Yamada <masahiroy@xxxxxxxxxx>
---

scripts/kconfig/gconf.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/scripts/kconfig/gconf.c b/scripts/kconfig/gconf.c
index c49401b4c9a1..58da3f13c5a0 100644
--- a/scripts/kconfig/gconf.c
+++ b/scripts/kconfig/gconf.c
@@ -674,7 +674,7 @@ static void on_window_size_allocate(GtkWidget *widget,
static gboolean on_window1_delete_event(GtkWidget *widget, GdkEvent *event,
gpointer user_data)
{
- GtkWidget *dialog, *label;
+ GtkWidget *dialog, *label, *content_area;
gint result;
gint ret = FALSE;

@@ -696,7 +696,8 @@ static gboolean on_window1_delete_event(GtkWidget *widget, GdkEvent *event,
GTK_RESPONSE_CANCEL);

label = gtk_label_new("\nSave configuration ?\n");
- gtk_container_add(GTK_CONTAINER(GTK_DIALOG(dialog)->vbox), label);
+ content_area = gtk_dialog_get_content_area(GTK_DIALOG(dialog));
+ gtk_container_add(GTK_CONTAINER(content_area), label);
gtk_widget_show(label);

result = gtk_dialog_run(GTK_DIALOG(dialog));
--
2.43.0