[gnome-software: 9/25] gs-plugin-job-refine: Set task source tag
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 9/25] gs-plugin-job-refine: Set task source tag
- Date: Tue, 1 Mar 2022 12:28:12 +0000 (UTC)
commit bead4d462f8ae023ba517e57d0d15ea68c6b5e21
Author: Philip Withnall <pwithnall endlessos org>
Date: Wed Feb 23 16:28:27 2022 +0000
gs-plugin-job-refine: Set task source tag
Rather than setting the task name, set its source tag. GLib provides a
macro implementation of `g_task_set_source_tag()` which sets the task
name at the same time.
Signed-off-by: Philip Withnall <pwithnall endlessos org>
lib/gs-plugin-job-refine.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/lib/gs-plugin-job-refine.c b/lib/gs-plugin-job-refine.c
index 4e4f3e97e..2d16db9e3 100644
--- a/lib/gs-plugin-job-refine.c
+++ b/lib/gs-plugin-job-refine.c
@@ -434,7 +434,7 @@ gs_plugin_job_refine_run_async (GsPluginJob *job,
/* check required args */
task = g_task_new (job, cancellable, callback, user_data);
- g_task_set_name (task, G_STRFUNC);
+ g_task_set_source_tag (task, gs_plugin_job_refine_run_async);
/* Operate on a copy of the input list so we don’t modify it when
* resolving wildcards. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]