GTKMM 3: custom container and child's size change notifications

I’m developing a custom container.

The child used for testing is a 2x2 grid with four buttons.

Each button changes the grid size with set_size_request.

What’s the canonical way for a container to be notified about its child’s change of size?

I’m using the child’s signal_size_allocate but it seems it’s only called when the size grows.

UPDATE:
signal_size_allocate is called when the size shrinks or grows, but when the child gets larger than the container, it’s not called anymore.

I restructured the layout method and the issue seems to be gone.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.