gsource: document priority of child sources
commit0415930b499fa951f1e82d38fc60461a8bd42c4b
authorRyan Lortie <desrt@desrt.ca>
Thu, 13 Feb 2014 15:18:03 +0000 (13 10:18 -0500)
committerRyan Lortie <desrt@desrt.ca>
Thu, 20 Feb 2014 23:32:42 +0000 (20 18:32 -0500)
tree79d757980ded5a3924b0716a03e2855c5af05962
parent8491f03581b6ada1d82f29064c99b604e98c7e09
gsource: document priority of child sources

Add a note to the documentation that child sources cannot have their priority
changed independently from their parent.  Add a g_return_if_fail() to the
public API in order to enforce this.

This was already a reality due to the check in
g_source_set_priority_unlocked(), but it was never explicitly documented.

https://bugzilla.gnome.org/show_bug.cgi?id=724706
glib/gmain.c