I have created a GtkBox subclass that defines its UI in a GtkBuilder template. The box contains 3 child widgets, so it ends up looking something like this:
I’m trying to reason my way through the layout logic so that this widget can request an appropriate minimum size. Right now, I can resize the window so small that it starts to clip over other widgets in the window, like this:
When I resize the window like that, I see messages like this in the console:
(damask:2): Adwaita-WARNING **: 09:52:22.033: DamaskWindow 0x559a83b7ae80 does not have a minimum size
(damask:2): Adwaita-WARNING **: 09:52:22.033: AdwToastOverlay 0x559a83b7bbb0 exceeds DamaskWindow width: requested 241 px, 197 px available
I’m guessing I need to implement the measure vfunc, but I can’t find an example that clearly explains how. Does anyone have any working examples of how the layout and measurement system works?