difference between gtk_signal_connect and g_signal_connect
hi, i'm reading the source code of gftp, and in the main, i can to read this : gtk_signal_connect(GTK_OBJECT(window), "delete_event", GTK_SIGNAL_FUNC(delete_event), NULL); what's the difference with g_signal_connect ? thanks -- Stephane Wirtel <[EMAIL PROTECTED]> GPG ID : 1024D/C9C16DA7 | 5331 0B5B 21F0 0363 EACD B73E 3D11 E5BC C9C1 6DA7 ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: difference between gtk_signal_connect and g_signal_connect
> what's the difference with g_signal_connect ? In moving from GTK-1.2 to GTK-2.0, the GTK+ Signal API functions were deprecated (and in some cases removed, I believe) in favor of their counterparts in the GSignal system. Quoting from the GTK-2.0 API docs: "For future usage, direct use of the GSignal API is recommended, this avoids significant performance hits where GtkArg structures have to be converted into GValues. For language bindings, GSignal+GClosure provide a much more flexible and convenient mechanism to hook into signal emissions or install class default handlers, so the old GtkSignal API for language bindings is not supported anymore. [...] For many of the removed functions, similar variants are available in the g_signal_* namespace. The GSignal system performs emissions in a slightly different manner than the old GtkSignal code. Signal handlers that are connected to signal "foo" on object "bar" while "foo" is being emitted, will not be called anymore during the emission they were connected within."" (http://developer.gnome.org/doc/API/2.0/gtk/gtk-changes-2-0.html) ~ellF~ ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: difference between gtk_signal_connect and g_signal_connect
* ellf ([EMAIL PROTECTED]) wrote: > > what's the difference with g_signal_connect ? > > In moving from GTK-1.2 to GTK-2.0, the GTK+ Signal API functions were > deprecated (and in some cases removed, I believe) in favor of their > counterparts in the GSignal system. In addtion to what ellf said, I note this in the GTK-2.0 API Reference on gtk_signal_connect: "Warning gtk_signal_connect is deprecated and should not be used in newly-written code. Use g_signal_connect() instead." -- .''`. Carl B. Constantine : :' : [EMAIL PROTECTED] `. `'GnuPG: 135F FC30 7A02 B0EB 61DB 34E3 3AF1 DC6C 9F7A 3FF8 `- Debian GNU/Linux -- The power of freedom msg11873/pgp0.pgp Description: PGP signature