summaryrefslogtreecommitdiff
path: root/demos/gtk-demo/drawingarea.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/gtk-demo/drawingarea.c')
-rw-r--r--demos/gtk-demo/drawingarea.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/gtk-demo/drawingarea.c b/demos/gtk-demo/drawingarea.c
index 845b414834..dd7380b63c 100644
--- a/demos/gtk-demo/drawingarea.c
+++ b/demos/gtk-demo/drawingarea.c
@@ -202,7 +202,7 @@ do_drawingarea (GtkWidget *do_widget)
gtk_widget_set_margin_end (vbox, 16);
gtk_widget_set_margin_top (vbox, 16);
gtk_widget_set_margin_bottom (vbox, 16);
- gtk_container_add (GTK_CONTAINER (window), vbox);
+ gtk_window_set_child (GTK_WINDOW (window), vbox);
/*
* Create the checkerboard area