From f59f3551902268600090c0382068103a09184df0 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 2 May 2020 17:26:54 -0400 Subject: Use gtk_window_set_child throughout Replace all uses of gtk_container_add on windows by gtk_window_set_child. --- tests/testaccel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/testaccel.c') diff --git a/tests/testaccel.c b/tests/testaccel.c index 0dc121d7b5..5a7ddd140c 100644 --- a/tests/testaccel.c +++ b/tests/testaccel.c @@ -74,7 +74,7 @@ key_test (void) gtk_widget_set_hexpand (sw, TRUE); box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10); gtk_widget_show (box); - gtk_container_add (GTK_CONTAINER (window), box); + gtk_window_set_child (GTK_WINDOW (window), box); gtk_container_add (GTK_CONTAINER (box), sw); store = gtk_list_store_new (3, G_TYPE_INT, G_TYPE_UINT, G_TYPE_UINT); -- cgit v1.2.1