/* Returns: (transfer none) (allow-none): the #GMainContext with which the source is associated, or NULL if the context has not yet been added to a source.  */
GMainContext* g_source_get_context(GSource *source)
/* Returns: (transfer none) (allow-none): the #GMainContext with which the source is associated, or NULL if the context has not yet been added to a source.  */
GMainContext* g_source_get_context(GSource *source)
{
  g_return_val_if_fail (source->context != NULL || !SOURCE_DESTROYED (source), NULL);
  return source->context;
}