Linking glade file with program g++

杀马特。学长 韩版系。学妹 提交于 2020-12-27 06:07:38

问题


Glade files and the program files can get a bit messy, this becomes a problem when you want your program to be portable. Is there any way to bind your program with your glade files?

Source code (unfinished but working project): https://github.com/caelwithcats/valuator


回答1:


You can use Gio Resources to include the contents of your .glade files in the application, and then use GtkBuilder's add_from_resource() to load them: https://developer.gnome.org/gtkmm-tutorial/stable/sec-gio-resource.html.en



来源:https://stackoverflow.com/questions/62594762/linking-glade-file-with-program-g

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!