From 77af8e303d375ba148c701a8f513d1eb55347ce4 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 3 May 2020 10:32:24 -0400 Subject: Use gtk_overlay_set_child throughout Replace all uses of gtk_container_add on overlays by gtk_overlay_set_child. --- examples/sunny.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') 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) { -- cgit v1.2.1