gtk+ 的 c 代码vsglade 生成的 .glade 文件

发布于 2024-09-24 21:06:09 字数 178 浏览 2 评论 0原文

我是 gtk+ 编程领域的新手。我仍在探索许多可用的选项。我将用C语言编码。我有以下问题:

  1. 哪个更好?编写代码还是使用由glade生成的.glade文件?
  2. 使用哪个更好? libglade 还是 gtkbuilder?
  3. 为什么不鼓励在glade2 中使用构建选项?

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:

  1. Which is better? Writing code or using the .glade files generated by glade?
  2. Which is better to use? libglade or gtkbuilder?
  3. Why is using the build option in glade2 discouraged?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

拧巴小姐 2024-10-01 21:06:09
  1. 选择更适合您的特定需求的选项。通常人们使用 Libglade/GtkBuilder 文件来实现重要的 UI(创建和维护不会那么混乱)。
  2. GtkBuilder 是新的首选方法,它是 GTK+ 的一部分。仅当您需要支持遗留系统时才应使用 Libglade。
  3. "这为开发人员提供了更大的灵活性,避免了重新编译当需要进行较小的界面更改时,可以应用程序,并允许在 Glade 中使用更多编程语言。”
  1. 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).
  2. 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.
  3. "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."
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文