GtkExpander doesn't allow to get parent from child widget
Pack a child widget to GtkExpander and pack it, call gtk_widget_get_ancestor() on child widget. Won't get desired ancestor.
- Create window
- Create and pack expander
- Create and pack child widget
- call gtk_widget_get_ancestor() on child widget
Current behavior
You don't get an ancestor.
Expected outcome
I would expect to retrieve an ancestor of GtkExpander.
Version information
pkg-config --modversion gtk4
4.6.2
Additional information
See critical message of attached test.
gcc -o gtk_expander_test gtk_expander_test.c pkg-config --cflags --libs gtk4