From ea21e50cc134d369a8d58dff201347963bc77cdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Wed, 12 Aug 2020 06:55:33 +0200 Subject: [PATCH] testadjustsize: Fix overlay/box confusion --- tests/testadjustsize.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/testadjustsize.c b/tests/testadjustsize.c index 4ae0568c7d..6b0997d4fc 100644 --- a/tests/testadjustsize.c +++ b/tests/testadjustsize.c @@ -182,16 +182,16 @@ create_widget_visible_border (const char *text) inner_box = gtk_overlay_new (); gtk_widget_add_css_class (inner_box, "blue-bg"); - gtk_box_append (GTK_BOX (outer_box), inner_box); + gtk_overlay_set_child (GTK_OVERLAY (outer_box), inner_box); test_widget = gtk_overlay_new (); gtk_widget_add_css_class (test_widget, "red-bg"); - gtk_box_append (GTK_BOX (inner_box), test_widget); + gtk_overlay_set_child (GTK_OVERLAY (inner_box), test_widget); label = gtk_label_new (text); - gtk_box_append (GTK_BOX (test_widget), label); + gtk_overlay_set_child (GTK_OVERLAY (test_widget), label); g_assert (TEST_WIDGET (outer_box) == test_widget);