LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 935|回复: 3

【Gtk+】请教这两个宏的区别!

[复制链接]
发表于 2004-2-25 16:09:51 | 显示全部楼层 |阅读模式
在g_siganl_connect()中,转化回调函数时经常用到两个宏:
G_CALLBACK()和GTK_SIGNAL_FUNC()
请问他们有何区别?
发表于 2004-2-25 16:21:19 | 显示全部楼层
GTK_SIGNAL_FUNC()好象是基于G_CALLBACK()的,两者好象能通用吧,因为gtk使用了glib.
我也想知道具体有什么分别,知道的兄弟请说一声,谢谢!
 楼主| 发表于 2004-2-26 16:34:10 | 显示全部楼层

在irc.gnome.org里得到的回答

In Gtk+1.2 the object stuff was in Gtk, while in Gtk+2.x the object stuff moved to GLib/Gobject, so G_CALLBACK is the new macro, and GTK_SIGNAL_FUNC is the old one that's still there for backwarks compatibility.

我想应该没什么问题。
发表于 2004-2-26 22:26:56 | 显示全部楼层
这样理解啊,谢谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表