mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 07:56:17 +01:00
gmain: Clarify documentation for g_source_get_id()
It’s good to know *which* GMainContext is used to determine the ID, and the preconditions for calling this method. Using wording suggested by Emmanuele Bassi <ebassi@gmail.com>. Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
parent
03c324c64a
commit
515dac258c
@ -1296,6 +1296,11 @@ g_source_destroy (GSource *source)
|
||||
* context. The reverse
|
||||
* mapping from ID to source is done by g_main_context_find_source_by_id().
|
||||
*
|
||||
* You can only call this function while the source is associated to a
|
||||
* #GMainContext instance; calling this function before g_source_attach()
|
||||
* or after g_source_destroy() yields undefined behavior. The ID returned
|
||||
* is unique within the #GMainContext instance passed to g_source_attach().
|
||||
*
|
||||
* Returns: the ID (greater than 0) for the source
|
||||
**/
|
||||
guint
|
||||
|
Loading…
Reference in New Issue
Block a user