c code for gtk+ vs glade generated .glade files
-
05-10-2019 - |
Question
I am new in the field of gtk+ programming. I'm still exploring many options to use. I will be coding in C language. I have the following questions:
- Which is better? Writing code or using the .glade files generated by glade?
- Which is better to use? libglade or gtkbuilder?
- Why is using the build option in glade2 discouraged?
Solution
- Choose whichever is more convenient for your particular need. Usually people use a Libglade/GtkBuilder file for non-trivial UI (less messy to create and maintain).
- GtkBuilder is the new, preferred way to do it, and it's part of GTK+. You should only use Libglade if you need to support legacy systems.
- "This allows more flexibility with the developer, prevents having to re-compile applications when a minor interface change is needed, and allows more programming languages to be used with Glade."
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow