[gtk/wip/baedert/for-master: 35/40] testadjustsize: Fix overlay/box confusion




commit dec53c0f81a8ad6b8b84dac4e518f480fddc0869
Author: Timm Bäder <mail baedert org>
Date:   Wed Aug 12 06:55:33 2020 +0200

    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);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]