Hi,
So I’m trying to create a little app in Gtk4 to improve my skills.
My problem is I don’t know how to configure the grid in the UI files right.
Here is an example using Glade:
<object class="GtkGrid" id="grid">
<property name="can-focus">False</property>
<property name="row-spacing">6</property>
<property name="column-spacing">6</property>
<child>
<object class="GtkButton">
<property name="label">1</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
</object>
<packing>
<property name="left-attach">0</property>
<property name="top-attach">0</property>
</packing>
</child>
<child>
<object class="GtkButton">
<property name="label" translatable="yes">2</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
</object>
<packing>
<property name="left-attach">1</property>
<property name="top-attach">0</property>
<property name="width">2</property>
</packing>
</child>
</object>
I know that Glade neither support Gtk4 nor it is recommended in general anymore but I couldn’t find any reference how it is right.
It would be nice if in the Gtk4 docs were a example
Thanks