Allocation warnings in GtkMessageDialog since BoxLayout
-
Make sure you run a
buildtype=debug
build -
Trigger a
GtkMessageDialog
, for mebuild/demos/gtk-demo/gtk4-demo --run dialog
and then clicking the button is the easiest way. -
Get a warning like this:
(gtk4-demo:18346): Gtk-WARNING **: 02:02:31.759: gtk_widget_size_allocate(): attempt to underallocate GtkBox's child GtkBox 0x14215e0. Allocation is 533x67, but minimum required size is 141x200.
(gtk4-demo:18346): Gtk-WARNING **: 02:02:31.774: gtk_widget_size_allocate(): attempt to underallocate GtkMessageDialog's child GtkBox 0x14155e0. Allocation is 533x112, but minimum required size is 144x245.
I bisected it and the result was this:
Bisecting: 0 revisions left to test after this (roughly 0 steps)
[1fed3577] Port GtkBox to GtkBoxLayout