Probably was asked before, but I am out of thinking why there is no “margin” property anymore.
I am 100% sure that writing:
g_object_set ( toggle_button,
"margin-start", 50,
"margin-top", 50,
"margin-end", 50,
"margin-bottom", 50,
NULL );
it is not easier to be written than:
g_object_set ( toggle_button,
"margin", 50,
NULL );
If one reads Migrating from GTK3 to GTK4 at the Stop using GtkBox padding, fill and expand child properties Section there is a part where it is explained about “margin” which does not help me at all:
GTK 4 removes these GtkBox child properties, so you should stop using them. You can replace GtkBox:padding using the “margin” properties on your GtkBox child widgets.
Could someone please explain me whats the story with in “margin” property in GTK4?