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.

  • 2
    Coding problems belong on Stack Overflow. – Robert Harvey Oct 10 at 1:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy