It’s not necessary unless your widget’s size is driven by something else; unless:
- you use the expand flags
- the parent container automatically expands its children
- you provide a
measure()
implementation - you have a CSS fragment that provides a minimum with and height
then the minimum and natural sizes of your widget are going to be 0×0—just like in GTK3.