diff options
Diffstat (limited to 'demos/gtk-demo/fixed.c')
-rw-r--r-- | demos/gtk-demo/fixed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/gtk-demo/fixed.c b/demos/gtk-demo/fixed.c index cf1d642f20..7c739030a6 100644 --- a/demos/gtk-demo/fixed.c +++ b/demos/gtk-demo/fixed.c @@ -134,7 +134,7 @@ create_demo_window (GtkWidget *do_widget) gtk_container_add (GTK_CONTAINER (window), sw); fixed = gtk_fixed_new (); - gtk_container_add (GTK_CONTAINER (sw), fixed); + gtk_scrolled_window_set_child (GTK_SCROLLED_WINDOW (sw), fixed); gtk_widget_set_halign (GTK_WIDGET (fixed), GTK_ALIGN_CENTER); gtk_widget_set_valign (GTK_WIDGET (fixed), GTK_ALIGN_CENTER); |