mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 11:33:28 +02:00
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 <masahiroy@kernel.org>
This commit is contained in:
parent
07944f94fc
commit
c34d632370
|
|
@ -628,7 +628,7 @@ static void on_window1_size_request(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;
|
||||
|
||||
|
|
@ -650,7 +650,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));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user