g_signal_lookup gives too many warnings
@tsch
Submitted by Torsten Schönfeld Link to original bug (#691096)
Description
g_signal_lookup has some code that provides elaborate warnings in case no signal was found:
http://git.gnome.org/browse/glib/tree/gobject/gsignal.c#n1203
I think this code is overzealous; the second and the third warning blocks don't seem to be warranted.
• There are interfaces with signals (e.g., GtkCellEditable), so it must be legal to try to look up a signal in an interface. The if (!G_TYPE_IS_INSTANTIATABLE (itype)) warning is therefore incorrect, I think.
• It seems to be perfectly legal to try to look up a signal in a type in its class' class_init function, when the type hasn't been fully loaded yet. The results also seem to be completely correct. So the if (!g_type_class_peek (itype)) warning also seems to be incorrect.
Should I submit a patch that removes these warnings?