diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-05-01 15:43:09 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-05-04 17:01:18 -0400 |
commit | e9ddf0fda552889ba17c2f34705ed87d38824cff (patch) | |
tree | c65b1d09251323952b66808a3ffaf11bf36a73bb /tests/testscrolltofocus.c | |
parent | 937c94bab510645f543dc7b634fa2767372f268d (diff) | |
download | gtk+-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.c | 2 |
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++) |