summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-05-03 10:32:24 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-05-04 22:53:08 -0400
commit77af8e303d375ba148c701a8f513d1eb55347ce4 (patch)
tree10b8ab1dc117d3ed4e8b5fde96f92df47bb9258b /examples
parent53f9737dcfc35e079ad56286be774c986fad8a9d (diff)
downloadgtk+-77af8e303d375ba148c701a8f513d1eb55347ce4.tar.gz
Use gtk_overlay_set_child throughout
Replace all uses of gtk_container_add on overlays by gtk_overlay_set_child.
Diffstat (limited to 'examples')
-rw-r--r--examples/sunny.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/sunny.c b/examples/sunny.c
index bd67831451..acb1341e0a 100644
--- a/examples/sunny.c
+++ b/examples/sunny.c
@@ -27,7 +27,7 @@ new_window (GApplication *app,
view = gtk_text_view_new ();
gtk_scrolled_window_set_child (GTK_SCROLLED_WINDOW (scrolled), view);
- gtk_container_add (GTK_CONTAINER (overlay), scrolled);
+ gtk_overlay_set_child (GTK_OVERLAY (overlay), scrolled);
if (file != NULL)
{