GMain: allow NULL context to g_source_attach

Documentation says it's fine and means default context, but the annotations
are missing (and thus bindings would complain).

https://bugzilla.gnome.org/show_bug.cgi?id=664302
This commit is contained in:
Giovanni Campagna 2011-11-17 22:30:29 +01:00
parent 71d3dad3ff
commit d2fd6dac4a

View File

@ -889,7 +889,7 @@ g_source_attach_unlocked (GSource *source,
/**
* g_source_attach:
* @source: a #GSource
* @context: a #GMainContext (if %NULL, the default context will be used)
* @context: (allow-none): a #GMainContext (if %NULL, the default context will be used)
*
* Adds a #GSource to a @context so that it will be executed within
* that context. Remove it by calling g_source_destroy().