From 9274d41b68c2ba20599f460e74dcf0c009a3df66 Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Thu, 15 Jun 2017 15:50:31 +0200 Subject: gdaemonfileenumerator: Marginally simplify the code https://bugzilla.gnome.org/show_bug.cgi?id=747412 --- client/gdaemonfileenumerator.c | 5 +---- 1 file changed, 1 insertion(+), 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); } -- cgit v1.2.1