Somewhere between GLib versions 2.20 and 2.22, this happened:
(2.22 is the first release for this commit to appear in.)
TpAccount uses the const version of this, so fails to build on < 2.22 with:
account.c: In function ‘tp_account_prepare_async’: account.c:2598: error: passing argument 2 of ‘g_simple_async_result_set_from_error’ discards qualifiers from pointer target type
We can either bump the dep of gio to >= 2.22, or cast these const GError*s to GError* and revert that when we do depend on 2.22.
It's up to you.
For 0.9/0.10 please apply the non-const casts; I don't think we want higher-than-necessary dependencies for an imminent stable release (so I've marked this as a 0.10 blocker). After 0.10, we should depend on the newer GIO for 0.11.x.
Okay, turns out I had already done this as part of 5620910fe5, but the recent additions to these files had not.
Czech out my branch.
review+. Ship it (to the Czech Republic, if you so wish).
(In reply to comment #3)
> review+. Ship it (to the Czech Republic, if you so wish).
< merged lol >