centerlayout: Fix computing expand
authorSergey Bugaev <bugaevc@gmail.com>
Wed, 2 Aug 2023 15:43:45 +0000 (18:43 +0300)
committerSergey Bugaev <bugaevc@gmail.com>
Wed, 2 Aug 2023 15:43:45 +0000 (18:43 +0300)
commitb42760da4def66ed6c081aff85960e74cbed8f7d
tree073202474fdae06545b89fd288fc0326369d8e7b
parentf13c8a3cb4ac0df4b8e52443102635361a05fb71
centerlayout: Fix computing expand

It was calling get_hexpand () / get_vexpand (), which only get whether
the expand properties are set on the widget itself. Use
compute_expand (), which properly walks the widget tree and finds
whether exapnd is set on the widget or any of its descendants.

Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
gtk/gtkcenterlayout.c