The migrating docs that exist are very good (particularly the porting guide, although I found information lacking particularly in the removal of
<packing></packing> for GtkGrid and GtkBox. Eventually I chanced upon some discussion for GtkGrid and found that layout is inserted in the child widget of the grid, rather than after its object (this is a good thing ). In the gjs docs there is reference to GtkGridLayout but not how it’s related to its use in xml,
<!-- n-columns=3 n-rows=3 -->
<object class="GtkGrid" id="scale_grid">
<property name="label" translatable="yes" context="label-hour">Hours</property>
The other parameter whose documentation is lacking related to
<packing> is the
position parameter related to GtkBox. it seems in gtk4 there is no way to specify the row or column for a box child (depending on its orientation) you just have to manually reorder the children inside the box.
What would be awesome after delving into this (and coming from the relative naive obscurity of glade ) is a gnome builder plugin to more easily edit xml (collapsible elements, auto-completion and insertion of things like
<object class='' id=''></property> and
<property name=''></property>. Auto selection of available object class values (GtkLabel, GtkGrid, GtkBox, GtkImage, …) and property names for those class objects is another thing that could really speed up manual editing of xml without being aware of the niceties of its syntax, or the available object properties. and beautifying with tabs/spaces/etc.
Just a bit of a dump there this morning, sorry if I got carried away.