[Spice-devel] [PATCH 03/14] channel-port: Use GTask instead of GSimpleAsyncResult
Christophe Fergeau
cfergeau at redhat.com
Mon Jan 18 02:35:29 PST 2016
On Mon, Jan 18, 2016 at 10:05:39AM +0100, Fabiano FidĂȘncio wrote:
> Instead of using GSimpleAsyncResult, use the new GTask API, which is
> much more straightforward.
> ---
> src/channel-port.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/channel-port.c b/src/channel-port.c
> index 6e01caa..20ee2fa 100644
> --- a/src/channel-port.c
> +++ b/src/channel-port.c
> @@ -292,7 +292,8 @@ void spice_port_write_async(SpicePortChannel *self,
> c = self->priv;
>
> if (!c->opened) {
> - g_simple_async_report_error_in_idle(G_OBJECT(self), callback, user_data,
> + g_task_report_new_error(self, callback,
> + user_data, spice_port_write_async,
> SPICE_CLIENT_ERROR, SPICE_CLIENT_ERROR_FAILED,
> "The port is not opened");
> return;
ACK.
Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20160118/4da8ab2d/attachment.sig>
More information about the Spice-devel
mailing list