boxlayout: Do not infloop
authorBenjamin Otte <otte@redhat.com>
Tue, 26 Apr 2022 17:51:16 +0000 (19:51 +0200)
committerBenjamin Otte <otte@redhat.com>
Tue, 26 Apr 2022 17:56:01 +0000 (19:56 +0200)
commit515b1f52929a189b858a38aba733a3e7d2375fbc
tree71995ff23330ad1193fbfc50c46e50739799a13b
parent25520964af2b8e24b210d2993ae6912c23c38b41
boxlayout: Do not infloop

if the loop for determining max width grows too big, print an error and
abort assuming that a satisfactory value was reached.

This will cause wrong layout and might cause widgets to overlap, but it
will not infloop.

It actually works around and doesn't really fix the primary cause of the
following bugs, but good enough to close them:

Fixes: #4252
Fixes: #4517
gtk/gtkboxlayout.c