summaryrefslogtreecommitdiff
path: root/demos/gtk-demo/headerbar.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/gtk-demo/headerbar.c')
-rw-r--r--demos/gtk-demo/headerbar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/gtk-demo/headerbar.c b/demos/gtk-demo/headerbar.c
index a1ddf97511..e8a0ead1a9 100644
--- a/demos/gtk-demo/headerbar.c
+++ b/demos/gtk-demo/headerbar.c
@@ -52,7 +52,7 @@ do_headerbar (GtkWidget *do_widget)
gtk_window_set_titlebar (GTK_WINDOW (window), header);
- gtk_container_add (GTK_CONTAINER (window), gtk_text_view_new ());
+ gtk_window_set_child (GTK_WINDOW (window), gtk_text_view_new ());
}
if (!gtk_widget_get_visible (window))