summaryrefslogtreecommitdiff
path: root/tests/testlist2.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-05-02 17:26:54 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-05-04 22:53:08 -0400
commitf59f3551902268600090c0382068103a09184df0 (patch)
treeaa006e0f33df61b714d68d2931f7a3bc64933fac /tests/testlist2.c
parentb9b1bf85e19fb31fcff2ab6b0dce8d0fffea7e01 (diff)
downloadgtk+-f59f3551902268600090c0382068103a09184df0.tar.gz
Use gtk_window_set_child throughout
Replace all uses of gtk_container_add on windows by gtk_window_set_child.
Diffstat (limited to 'tests/testlist2.c')
-rw-r--r--tests/testlist2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testlist2.c b/tests/testlist2.c
index 3dfb4702c2..1aa933d3c2 100644
--- a/tests/testlist2.c
+++ b/tests/testlist2.c
@@ -122,7 +122,7 @@ int main (int argc, char *argv[])
gtk_list_box_set_selection_mode (GTK_LIST_BOX (list), GTK_SELECTION_NONE);
gtk_list_box_set_header_func (GTK_LIST_BOX (list), add_separator, NULL, NULL);
sw = gtk_scrolled_window_new (NULL, NULL);
- gtk_container_add (GTK_CONTAINER (window), sw);
+ gtk_window_set_child (GTK_WINDOW (window), sw);
gtk_scrolled_window_set_child (GTK_SCROLLED_WINDOW (sw), list);
for (i = 0; i < 20; i++)