as far as i understand my widget itself uses constraint layout manager, so i expected to be able to use <constraints> tag inside UI, but gtk says this tag is unhandled
my question is: how i can use constraints in UI files? where to put child and constaint tags themselves?
a small example would be nice
The quick answer is: if you’re setting the layout manager type in the class, then you’re supposed to be constructing the layout yourself, as it’s part of the class and it applies to all instances of the type.
If you’re using a UI description file, then you should use the GtkWidget:layout-manager property, since it applies to a specific instance.
could you please clarify
when you say “constructing the layout yourself”, do you mean that i should be doing it in the class code, not in the ui file?
and another thing:
i’ll be adding more widgets dynamically to my original custom widget
assuming that i use UI file as i’ve mentioned in my previous message, could you please tell if this approach is correct: