layout manager: add a check if the widget exists
authorBilal Elmoussaoui <belmouss@redhat.com>
Fri, 11 Feb 2022 10:44:16 +0000 (11:44 +0100)
committerBilal Elmoussaoui <belmouss@redhat.com>
Fri, 11 Feb 2022 10:44:16 +0000 (11:44 +0100)
commit6c02017212a40af325c6e19019b4a7491d913618
tree54bf6faa95cf8d007b32c1aff62d3bc332dee50f
parent90bccf4e822cdc31f57d7f77b73dbb5a1f9bd2a9
layout manager: add a check if the widget exists

Avoid a crash when calling _gtk_widget_get_first_child
Fixes https://github.com/gtk-rs/gtk4-rs/issues/889
gtk/gtklayoutmanager.c