Add gtk_widget_set_margin() to set all 4 margins at once (i.e. GTK+ API for property Widget:margin)
@dboles
Submitted by Daniel Boles Link to original bug (#776637)
Description
With Container:border-width removed, the typical replacement is to set an equivalent margin on all 4 sides of the child. That can be done using the Widget:margin property, but given that a lot more people are going to be wanting to call this in GTK+ 4, I think there should be normal GTK+ API available for it.
Having to write
g_object_set (G_OBJECT (widget), "margin", an_int, NULL); is a lot more verbose and flow-breaking than gtk_widget_set_margin (widget, an_int); would be.
Version: 3.89.x