gsignal: Document class init before signals can be looked up

Fixes: #767

Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
Philip Withnall 2019-09-20 11:23:08 +02:00
parent c4ec302932
commit 9ca97b8b0b

View File

@ -1224,6 +1224,10 @@ g_signal_stop_emission_by_name (gpointer instance,
* *
* Also tries the ancestors of the given type. * 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. * See g_signal_new() for details on allowed signal names.
* *
* Returns: the signal's identifying number, or 0 if no signal was found. * Returns: the signal's identifying number, or 0 if no signal was found.