gtk-demo: Fix expander demo

GtkExpander is not a GtkBox anymore, so use the new gtk_expander_set_child()
API.
This commit is contained in:
Alexander Larsson 2020-05-13 10:50:41 +02:00
parent 8d9a3de65a
commit fede7cd81c

View File

@ -79,7 +79,7 @@ do_expander (GtkWidget *do_widget)
"innuendo, just to make you scroll down or "
"resize the window. Do it already !", -1);
gtk_scrolled_window_set_child (GTK_SCROLLED_WINDOW (sw), tv);
gtk_box_append (GTK_BOX (expander), sw);
gtk_expander_set_child (GTK_EXPANDER (expander), sw);
gtk_box_append (GTK_BOX (area), expander);
g_signal_connect (expander, "notify::expanded",
G_CALLBACK (expander_cb), window);