summaryrefslogtreecommitdiff
path: root/client/gdaemonmount.c
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2012-10-21 18:18:46 +0200
committerDan Winship <danw@gnome.org>2015-04-06 10:46:41 -0400
commit8f5d05c27fbf79e1a77d0d1ae294db7da4eeecd9 (patch)
treee98efd2b0f54dbd5c94792995da144328ac49f21 /client/gdaemonmount.c
parent60968576962f10212caf9e59a41ef0a9f77e6165 (diff)
downloadgvfs-wip/gtask-porting.tar.gz
Port to GTaskwip/gtask-porting
Diffstat (limited to 'client/gdaemonmount.c')
-rw-r--r--client/gdaemonmount.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/client/gdaemonmount.c b/client/gdaemonmount.c
index f5bc5a62..743c155b 100644
--- a/client/gdaemonmount.c
+++ b/client/gdaemonmount.c
@@ -179,12 +179,12 @@ unmount_reply (DBusMessage *reply,
GError *io_error,
gpointer _data)
{
- GSimpleAsyncResult *result = _data;
+ GTask *result = _data;
if (io_error != NULL)
- g_simple_async_result_set_from_error (result, io_error);
+ g_task_return_error (result, io_error);
- g_simple_async_result_complete (result);
+ g_task_async_result_complete (result);
g_object_unref (result);
}
@@ -199,7 +199,7 @@ g_daemon_mount_unmount_with_operation (GMount *mount,
GDaemonMount *daemon_mount = G_DAEMON_MOUNT (mount);
DBusMessage *message;
GMountInfo *mount_info;
- GSimpleAsyncResult *res;
+ GTask *res;
guint32 dbus_flags;
GMountSource *mount_source;
const char *dbus_id, *obj_path;
@@ -222,7 +222,7 @@ g_daemon_mount_unmount_with_operation (GMount *mount,
DBUS_TYPE_UINT32, &dbus_flags,
0);
- res = g_simple_async_result_new (G_OBJECT (mount),
+ res = g_task_new (mount,
callback, user_data,
g_daemon_mount_unmount_with_operation);
@@ -288,13 +288,13 @@ g_daemon_mount_guess_content_type (GMount *mount,
GAsyncReadyCallback callback,
gpointer user_data)
{
- GSimpleAsyncResult *simple;
- simple = g_simple_async_result_new (G_OBJECT (mount),
+ GTask *task;
+ task = g_task_new (mount,
callback,
user_data,
NULL);
- g_simple_async_result_complete_in_idle (simple);
- g_object_unref (simple);
+ g_task_async_result_complete_in_idle (task);
+ g_object_unref (task);
}
static char **