summaryrefslogtreecommitdiff
path: root/tests/treestoretest.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-05-02 00:51:20 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-05-04 22:53:07 -0400
commit67759d4c3ee28bbff9a4ec17f2044822ba732282 (patch)
tree96f80ce99c575bb0ad3c0560cf117e89dd1059b5 /tests/treestoretest.c
parent54b613392bb630108340259c84baac4d518fb444 (diff)
downloadgtk+-67759d4c3ee28bbff9a4ec17f2044822ba732282.tar.gz
Use gtk_scrolled_window_set_child throughout
Replace all uses of gtk_container_add on popovers by gtk_scrolled_window_set_child.
Diffstat (limited to 'tests/treestoretest.c')
-rw-r--r--tests/treestoretest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/treestoretest.c b/tests/treestoretest.c
index c461c25b37..d8a3430b86 100644
--- a/tests/treestoretest.c
+++ b/tests/treestoretest.c
@@ -342,7 +342,7 @@ make_window (gint view_type)
gtk_tree_selection_set_mode (GTK_TREE_SELECTION (selection), GTK_SELECTION_SINGLE);
/* Put them together */
- gtk_container_add (GTK_CONTAINER (scrolled_window), tree_view);
+ gtk_scrolled_window_set_child (GTK_SCROLLED_WINDOW (scrolled_window), tree_view);
gtk_widget_set_vexpand (scrolled_window, TRUE);
gtk_container_add (GTK_CONTAINER (vbox), scrolled_window);
gtk_container_add (GTK_CONTAINER (window), vbox);