[gvfs] gdaemonfileenumerator: Marginally simplify the code
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] gdaemonfileenumerator: Marginally simplify the code
- Date: Mon, 7 Aug 2017 10:28:58 +0000 (UTC)
commit 9274d41b68c2ba20599f460e74dcf0c009a3df66
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Jun 15 15:50:31 2017 +0200
gdaemonfileenumerator: Marginally simplify the code
https://bugzilla.gnome.org/show_bug.cgi?id=747412
client/gdaemonfileenumerator.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/client/gdaemonfileenumerator.c b/client/gdaemonfileenumerator.c
index f3ba336..aee980f 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]