/* A child source always has the same priority as its parent. It is not permitted to change the priority of a source once it has been added as a child of another source.  */
void g_source_set_priority(GSource *source, gint priority)
/* A child source always has the same priority as its parent. It is not permitted to change the priority of a source once it has been added as a child of another source.  */
void g_source_set_priority(GSource *source, gint priority)
{
  GMainContext *context;
  g_return_if_fail (source != NULL);
  g_return_if_fail (source->priv->parent_source == NULL);
  context = source->context;
  if (context)
    LOCK_CONTEXT (context);
  g_source_set_priority_unlocked (source, context, priority);
  if (context)
    UNLOCK_CONTEXT (source->context);
}