gsource: allow NULL check and prepare functions
authorRyan Lortie <desrt@desrt.ca>
Mon, 29 Oct 2012 17:26:05 +0000 (18:26 +0100)
committerRyan Lortie <desrt@desrt.ca>
Tue, 15 Jan 2013 19:08:02 +0000 (14:08 -0500)
commit6d25e349988d4c40b066d548383fce3b126a7a43
tree5d41f2b98036cfa36ba96039a5c2432cab921991
parent8f7f7f6c4209900ca1a77c7e2015ff3e9c252097
gsource: allow NULL check and prepare functions

Allow for NULL GSourceFuncs.check() and .prepare().

For prepare() the source will be taken not to be ready and having an
infinite timeout.  For check() the source will be taken not to be ready.

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