I am trying to write an application containing GtkBox (Horizontal), where I add a dynamic number of buttons (with labels) depending on various conditions. Now I want GtkBox not to exceed (for example) 600px. Button labels can be elliptical.
So my question is: is there a general way to solve this problem? If not, I think I will need to create a new container class that will keep track of its size.
I am using the C API for GTK ( gtk+-3.0)
source
share