Re: callback function difference



El jue, 10-12-2009 a las 22:05 +0800, Zhangwei escribiÃ:
hello
i'm new in gtk
i'm puzzled about the callback functions:  g_callback() & gtk_signal_func()
they looked same
is there anyone can tell me the difference ?

There is none. The object/signal system of Gtk was split out into
GObject a long time ago, but part of the old system is still in Gtk for
compatibility reasons.
So while gtk_signal_func is a mere alias for g_callback, the former must
not be used in newly written code - in fact, it will be removed with the
release of Gtk+-3.0.

Regards,
Florian




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]