[gtk/wip/baedert/for-master: 4/5] testadjustsize: Fix overlay/box confusion
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 4/5] testadjustsize: Fix overlay/box confusion
- Date: Wed, 12 Aug 2020 05:01:06 +0000 (UTC)
commit 57e78cbf9c0ef6071ac13880c691f6bda1772d79
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]