Search code examples
cgtkglade

Is it possible to hide a .glade file from user in GTK?


I am new at GTK and started out using Glade to design a UI. But whenever I run my app, I must keep the Glade file in the same directory as the executable. I would like to distribute the Glade file in a compiled form, same as the source code. Is this possible?


Solution

  • Yes, that's possible. Give a look to the GResource documentation. Its main use is to embed resources like ui files, icons, etc. in the main binary.