summaryrefslogtreecommitdiff
path: root/tests/testflowbox.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-05-07 00:05:51 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-05-11 22:21:14 -0400
commit1afc7494436dd509a33e641508bc9639e0f7ca90 (patch)
tree5d8595622150760ca7e06d379b45d3a7578bbe84 /tests/testflowbox.c
parent6b80d90db5db4da15d135927c3e174543d45ec4a (diff)
downloadgtk+-1afc7494436dd509a33e641508bc9639e0f7ca90.tar.gz
Use gtk_expander_set_child throughout
Replace all uses of gtk_container_add on expanders with gtk_expander_set_child.
Diffstat (limited to 'tests/testflowbox.c')
-rw-r--r--tests/testflowbox.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testflowbox.c b/tests/testflowbox.c
index e8b499bf6e..84a1603b39 100644
--- a/tests/testflowbox.c
+++ b/tests/testflowbox.c
@@ -412,7 +412,7 @@ create_window (void)
expander = gtk_expander_new ("Flow Box controls");
gtk_expander_set_expanded (GTK_EXPANDER (expander), TRUE);
flowbox_cntl = gtk_box_new (GTK_ORIENTATION_VERTICAL, 2);
- gtk_container_add (GTK_CONTAINER (expander), flowbox_cntl);
+ gtk_expander_set_child (GTK_EXPANDER (expander), flowbox_cntl);
gtk_container_add (GTK_CONTAINER (vbox), expander);
widget = gtk_check_button_new_with_label ("Homogeneous");
@@ -570,7 +570,7 @@ create_window (void)
expander = gtk_expander_new ("Test item controls");
gtk_expander_set_expanded (GTK_EXPANDER (expander), TRUE);
items_cntl = gtk_box_new (GTK_ORIENTATION_VERTICAL, 2);
- gtk_container_add (GTK_CONTAINER (expander), items_cntl);
+ gtk_expander_set_child (GTK_EXPANDER (expander), items_cntl);
gtk_container_add (GTK_CONTAINER (vbox), expander);
/* Add Items control */