[gtk/stack-fixes: 16/26] gtk-demo: Fix the sidebar demo



commit 317b9e638c1097c237c2e65469c1d660dfb2027e
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Feb 8 18:27:56 2019 -0500

    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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]