简体   繁体   English

gtk + -2.0,林间空地

[英]gtk+-2.0, glade

I am new in the filed of gtk+ programming. 我是gtk +编程领域的新手。 I have glade-2.6 installed on my linux system. 我在Linux系统上安装了Glade-2.6。 When i try to build my gui it gives 2 options- C and LibGlade. 当我尝试构建我的GUI时,它提供2个选项-C和LibGlade。 However for libglade it says that it is deprecated and that i should use intltool instead. 但是对于libglade,它说它已被弃用,我应该改用intltool。 What does it mean and why is LibGlade deprecated? 这是什么意思,为什么不赞成使用LibGlade?

Your version of glade is actually very old. 您的林间空地版本实际上很旧。 The most recent version is 3.6. 最新版本是3.6。 Currently, libglade is being phased out, but for a completely different reason: there is a new alternative called GtkBuilder that is included directly in GTK+ (rather than being a separate library) and has more functionality. 目前,libglade正在逐步淘汰,但出于完全不同的原因:有一个名为GtkBuilder的新替代方案,它直接包含在GTK +中(而不是作为一个单独的库),并且具有更多功能。 If I were you, I would use GtkBuilder rather than libglade, and either one rather than using generated C code. 如果您是我,我将使用GtkBuilder而不是libglade,或者使用其中之一而不是使用生成的C代码。 The XML that libglade/GtkBuilder use is more compact and understandable and easier to modify by hand if necessary. libglade / GtkBuilder使用的XML更紧凑,更易于理解,并在需要时更易于手动修改。

To be honest, I'm not sure why it is saying you should use intltool instead. 老实说,我不确定为什么要说应该使用intltool。 As a framework for internationalization, it seems to serve a completely different purpose than libglade. 作为国际化的框架,它的目的似乎与libglade完全不同。 I haven't programmed in GTK+ long enough to know what the history is there. 我还没有用GTK +编程足够长的时间来知道那里的历史。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM