Is there any equivelent of gtk_widget_set_margin_start/end/top/bottom() which is porportional to the space allocated to the widget?

by Asadefa   Last Updated October 10, 2019 01:05 AM

The problem is if I use the gtk_widget_set_margin_top(), then I resize the window, the proportion is gone. I wonder if there is any way to set the margin based on the allocated size of a widget, rather than a fixed number of pixels. For example, my goal would set the end margin to half the original width size of the widget.

Tags : c gtk


Related Questions