summaryrefslogtreecommitdiff
path: root/tests/testscrolltofocus.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-05-01 15:43:09 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-05-04 17:01:18 -0400
commite9ddf0fda552889ba17c2f34705ed87d38824cff (patch)
treec65b1d09251323952b66808a3ffaf11bf36a73bb /tests/testscrolltofocus.c
parent937c94bab510645f543dc7b634fa2767372f268d (diff)
downloadgtk+-e9ddf0fda552889ba17c2f34705ed87d38824cff.tar.gz
Use gtk_viewport_set_child throughout
Replace all uses of gtk_container_add on viewports by gtk_viewport_set_child.
Diffstat (limited to 'tests/testscrolltofocus.c')
-rw-r--r--tests/testscrolltofocus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testscrolltofocus.c b/tests/testscrolltofocus.c
index ac46c815ce..8bc6da352f 100644
--- a/tests/testscrolltofocus.c
+++ b/tests/testscrolltofocus.c
@@ -21,7 +21,7 @@ int main (int argc, char *argv[])
gtk_widget_set_margin_end (grid, 20);
gtk_widget_set_margin_top (grid, 20);
gtk_widget_set_margin_bottom (grid, 20);
- gtk_container_add (GTK_CONTAINER (viewport), grid);
+ gtk_viewport_set_child (GTK_VIEWPORT (viewport), grid);
for (i = 0; i < 20; i++)
for (j = 0; j < 20; j++)