../src/meson.build:227:0: ERROR: Invalid version of dependency, need 'gtk4' ['>= 4.5.0'] found '4.4.1'.
Would anyone know what is going wrong here? Many thanks!
EDIT: This is a bundling issue, and I haven’t figured out how to bundle gtk4 4.5.0. I have tried bundling with Flatpak manifest and it always seems to throw this error; are there any other ways of bundling it?
Ah, that one is well known but can come from anywhere.
There was a fix in libadwaita, check with the latest main - might be related
If you have halign on any GtkLabels anywhere - remove it
If not - this will be tricky to debug. but some widget somewhere is misbehaving. You’ll need to run your app with GTK_DEBUG=size-request (and have an appropriately built GTK) and it will show what exactly happens (some widget will get increasingly large for_size in a measure request ad infinitum). After you get the log, attach it here if you can’t find out which widget it is
It may be a GTK bug, a libadwaita bug or your bug - impossible to say until we have the log.
I mean what that flag does is it indeed logs every widget. But what I’m interested in here is the:
[0x5618e6a85f00] GtkBox height for width: 2113929205 is minimum 103 and natural: 103, baseline 23/23 (hit cache: no)
So it looks like yet another problem of box<->label interactions. Hard to tell what exactly from the log, but I can see it’s not libadwaita stuff, so at least it’s not my problem.
The next step would be to trim down your layout to make a minimal reproducer. Since it’s not libadwaita - it can be a ui file viewable with gtk4-builder-tool preview your_ui_file.ui.
I almost got to making a minimal reproducer- but then gtk said I couldn’t use debug options anymore. I have a couple of GtkBoxes and one GtkButton and GtkLabel. Their interaction was problematic. It works fine with only one or the other, but when both are combined it does not open.