Fix cancellation support to use g_task_set_check_cancellable()
@pwithnall
Submitted by Philip Withnall Assigned to lib..@..e.bugs
Link to original bug (#786282)
Description
See https://bugzilla.gnome.org/show_bug.cgi?id=684920#c278
Since we switched to GTask, we need to call g_task_set_check_cancellable() in various places to stop it automatically overwriting operation results with G_IO_ERROR_CANCELLED if the GCancellable was triggered (even if we’ve got the appropriate results from the network).
Version: git master