diff options
author | Fabiano FidĂȘncio <fidencio@redhat.com> | 2016-01-14 14:59:30 +0100 |
---|---|---|
committer | Fabiano FidĂȘncio <fidencio@redhat.com> | 2016-02-16 17:09:53 +0100 |
commit | 43593aed1348e45ab3157afa133e2613574d17da (patch) | |
tree | 53ae18918f4f803521a55095eaba3db9915c6113 | |
parent | f1c34fda5f08d8b1d303a3504c96f6d74ca6c640 (diff) | |
download | spice-gtk-43593aed1348e45ab3157afa133e2613574d17da.tar.gz spice-gtk-43593aed1348e45ab3157afa133e2613574d17da.tar.xz spice-gtk-43593aed1348e45ab3157afa133e2613574d17da.zip |
channel-port: Use GTask instead of GSimpleAsyncResult
Instead of using GSimpleAsyncResult, use the new GTask API, which is
much more straightforward.
-rw-r--r-- | src/channel-port.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |