Remove GSourceFunc casts

Convert the callback into a real GSourceFunc.

Install one-shot callbacks only if allocation succeeded.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
2 jobs for !35 with GSourceFunc in 2 minutes and 57 seconds (queued for 1 second)
merge request