Skip to content

Commit c34d632

Browse files
committed
kconfig: gconf: use gtk_dialog_get_content_area() accessor
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 <[email protected]>
1 parent 07944f9 commit c34d632

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/kconfig/gconf.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ static void on_window1_size_request(GtkWidget *widget,
628628
static gboolean on_window1_delete_event(GtkWidget *widget, GdkEvent *event,
629629
gpointer user_data)
630630
{
631-
GtkWidget *dialog, *label;
631+
GtkWidget *dialog, *label, *content_area;
632632
gint result;
633633
gint ret = FALSE;
634634

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

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

656657
result = gtk_dialog_run(GTK_DIALOG(dialog));

0 commit comments

Comments
 (0)