From 317b9e638c1097c237c2e65469c1d660dfb2027e Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 8 Feb 2019 18:27:56 -0500 Subject: [PATCH] gtk-demo: Fix the sidebar demo It was still using child properties. --- demos/gtk-demo/sidebar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demos/gtk-demo/sidebar.c b/demos/gtk-demo/sidebar.c index 5ec3d16fd0..d5732cec69 100644 --- a/demos/gtk-demo/sidebar.c +++ b/demos/gtk-demo/sidebar.c @@ -73,7 +73,7 @@ do_sidebar (GtkWidget *do_widget) widget = gtk_label_new (c); } gtk_stack_add_named (GTK_STACK (stack), widget, c); - gtk_container_child_set (GTK_CONTAINER (stack), widget, "title", c, NULL); + g_object_set (gtk_stack_get_page (GTK_STACK (stack), widget), "title", c, NULL); } gtk_container_add (GTK_CONTAINER (window), box);