Re: missing g_signal macros
- From: Owen Taylor <otaylor redhat com>
- To: Sven Neumann <sven gimp org>
- Cc: gtk-devel-list gnome org
- Subject: Re: missing g_signal macros
- Date: 29 Jul 2001 10:03:15 -0400
Sven Neumann <sven gimp org> writes:
> we started to port Gimp to the GLib/GTK+-2.0 API and I found myself
> using the generic (and lenghty) g_signal funcs very often. I'd vote
> for including the following convenience macros:
No real opinion on this one.
> If this is OK for you, I can provide the necessary simple patch.
Tim specifically did not want to add these and I tend to agree
with him... if you call g_signal_handlers_disconnect_by_data()
and you can't be absolutely sure that no one else has a pointer
to the data you are disconnecting, then your code has a
latent bug in it.
It's almost always safer to disconnect only the signals
you know you connected with disconnect_by_func().
] [Thread Prev