summaryrefslogtreecommitdiff
path: root/gtk/gtkmenusectionbox.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-02-06 12:54:18 -0500
committerMatthias Clasen <mclasen@redhat.com>2019-02-08 00:09:44 -0500
commitad9c2a624fd53e0ffc9ca61828bdf362fbb68727 (patch)
treeb2bf625f9baa4b0acec6001916b8d23ab2505bc0 /gtk/gtkmenusectionbox.c
parenta3e517aa9cd61e71041488a3b042f9ad3fc1a961 (diff)
downloadgtk+-ad9c2a624fd53e0ffc9ca61828bdf362fbb68727.tar.gz
stack: Convert child properties to a child meta object
Create a GtkStackPage public object which holds the former child properties of GtkStack. Adjust all callers.
Diffstat (limited to 'gtk/gtkmenusectionbox.c')
-rw-r--r--gtk/gtkmenusectionbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkmenusectionbox.c b/gtk/gtkmenusectionbox.c
index 7b21eebc13..7439345373 100644
--- a/gtk/gtkmenusectionbox.c
+++ b/gtk/gtkmenusectionbox.c
@@ -303,7 +303,7 @@ gtk_menu_section_box_insert_func (GtkMenuTrackerItem *item,
g_object_bind_property (item, "sensitive", widget, "sensitive", G_BINDING_SYNC_CREATE);
get_ancestors (GTK_WIDGET (box->toplevel), GTK_TYPE_STACK, &stack, &parent);
- gtk_container_child_get (GTK_CONTAINER (stack), parent, "name", &name, NULL);
+ g_object_get (gtk_stack_get_page (GTK_STACK (stack), parent), "name", &name, NULL);
gtk_menu_section_box_new_submenu (item, box->toplevel, widget, name);
g_free (name);
}