GTK 手册问题

29 views
Skip to first unread message

孙建希

unread,
Jul 14, 2011, 9:20:53 PM7/14/11
to linux kernel 邮件列表
GTK_SIGNAL_FUNC()
#define GTK_SIGNAL_FUNC(f) G_CALLBACK(f)
Warning
GTK_SIGNAL_FUNC is deprecated and should not be used in newly-written
code.

Just a macroized cast into a GtkSignalFunc.


gtk的帮助文档告诉我们不要用这个宏了,那我们用什么呢?怎么查啊?

在线文档地址:http://developer.gnome.org/gtk/stable/gtk-Types.html#GTK-SIGNAL-FUNC:CAPS
_______________________________________________
Linux 内核开发中文邮件列表
Linux-...@zh-kernel.org
http://zh-kernel.org/mailman/listinfo/linux-kernel
Linux 内核开发中文社区: http://zh-kernel.org

董俊杰

unread,
Jul 15, 2011, 5:44:21 AM7/15/11
to 孙建希, linux kernel 邮件列表
用G_SIGNAL_FUNC宏,绝大部分的GTK_开头的宏或函数都改用G_开头的了,也就是把原来在GTK库中实现的宏和函数挪到glib里面了。文档里面没有直接给出替代的函数,但有些地方提到了这个变化。

--
Reply all
Reply to author
Forward
0 new messages