Merge branch '767-signal-class-refs' into 'master'

gsignal: Document class init before signals can be looked up

Closes #767

See merge request GNOME/glib!1118
This commit is contained in:
Sebastian Dröge 2019-09-20 11:14:56 +00:00
commit 744f5c42da

View File

@ -1224,6 +1224,10 @@ g_signal_stop_emission_by_name (gpointer instance,
*
* Also tries the ancestors of the given type.
*
* The type class passed as @itype must already have been instantiated (for
* example, using g_type_class_ref()) for this function to work, as signals are
* always installed during class initialization.
*
* See g_signal_new() for details on allowed signal names.
*
* Returns: the signal's identifying number, or 0 if no signal was found.