mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-28 16:36:14 +01:00
Merge branch '827-main-context-docs' into 'master'
gmain: Clarify that g_source_set_callback() is safe on attached sources Closes #827 See merge request GNOME/glib!426
This commit is contained in:
commit
c1b3177461
10
glib/gmain.c
10
glib/gmain.c
@ -1584,6 +1584,10 @@ static GSourceCallbackFuncs g_source_callback_funcs = {
|
|||||||
* an initial reference count on @callback_data, and thus
|
* an initial reference count on @callback_data, and thus
|
||||||
* @callback_funcs->unref will eventually be called once more
|
* @callback_funcs->unref will eventually be called once more
|
||||||
* than @callback_funcs->ref.
|
* than @callback_funcs->ref.
|
||||||
|
*
|
||||||
|
* It is safe to call this function multiple times on a source which has already
|
||||||
|
* been attached to a context. The changes will take effect for the next time
|
||||||
|
* the source is dispatched after this call returns.
|
||||||
**/
|
**/
|
||||||
void
|
void
|
||||||
g_source_set_callback_indirect (GSource *source,
|
g_source_set_callback_indirect (GSource *source,
|
||||||
@ -1640,7 +1644,11 @@ g_source_set_callback_indirect (GSource *source,
|
|||||||
* on how to handle memory management of @data.
|
* on how to handle memory management of @data.
|
||||||
*
|
*
|
||||||
* Typically, you won't use this function. Instead use functions specific
|
* Typically, you won't use this function. Instead use functions specific
|
||||||
* to the type of source you are using.
|
* to the type of source you are using, such as g_idle_add() or g_timeout_add().
|
||||||
|
*
|
||||||
|
* It is safe to call this function multiple times on a source which has already
|
||||||
|
* been attached to a context. The changes will take effect for the next time
|
||||||
|
* the source is dispatched after this call returns.
|
||||||
**/
|
**/
|
||||||
void
|
void
|
||||||
g_source_set_callback (GSource *source,
|
g_source_set_callback (GSource *source,
|
||||||
|
Loading…
Reference in New Issue
Block a user