summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorDebarshi Ray <debarshir@gnome.org>2017-06-15 15:50:31 +0200
committerOndrej Holy <oholy@redhat.com>2017-08-07 12:24:28 +0200
commit9274d41b68c2ba20599f460e74dcf0c009a3df66 (patch)
tree06a5ca8ad1ee95aa2c43279c2d0ba3d608ce41d7 /client
parent8e9439ef4abf1525d8c41dc6155e6165c853cac6 (diff)
downloadgvfs-9274d41b68c2ba20599f460e74dcf0c009a3df66.tar.gz
gdaemonfileenumerator: Marginally simplify the code
https://bugzilla.gnome.org/show_bug.cgi?id=747412
Diffstat (limited to 'client')
-rw-r--r--client/gdaemonfileenumerator.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/client/gdaemonfileenumerator.c b/client/gdaemonfileenumerator.c
index f3ba336b..aee980fe 100644
--- a/client/gdaemonfileenumerator.c
+++ b/client/gdaemonfileenumerator.c
@@ -397,10 +397,7 @@ _g_task_return_pointer_idle (GTask *task, gpointer result, GDestroyNotify notify
g_object_set_data (G_OBJECT (task), "_g_task_return_pointer_idle_notify", notify);
source = g_idle_source_new ();
- g_source_set_priority (source, g_task_get_priority (task));
- g_source_set_callback (source, (GSourceFunc) _g_task_return_pointer_idle_cb,
- g_object_ref (task), g_object_unref);
- g_source_attach (source, g_task_get_context (task));
+ g_task_attach_source (task, source, (GSourceFunc) _g_task_return_pointer_idle_cb);
g_source_unref (source);
}