diff options
author | Fabiano Fidêncio <fidencio@redhat.com> | 2016-01-14 14:59:30 +0100 |
---|---|---|
committer | Fabiano Fidêncio <fidencio@redhat.com> | 2016-03-14 22:47:16 +0100 |
commit | 3b130da8fc688a4968a99477513504bb43e55be9 (patch) | |
tree | 1f04118b7a4b90f0ca4eeff9f70095cb60a4e3b0 /src | |
parent | a172e8f115234f797b291f474226ca1506589119 (diff) | |
download | spice-gtk-3b130da8fc688a4968a99477513504bb43e55be9.tar.gz spice-gtk-3b130da8fc688a4968a99477513504bb43e55be9.tar.xz spice-gtk-3b130da8fc688a4968a99477513504bb43e55be9.zip |
channel-port: Use GTask instead of GSimpleAsyncResult
Instead of using GSimpleAsyncResult, use the new GTask API, which is
much more straightforward.
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
Diffstat (limited to 'src')
-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; |