[gnome-software: 37/38] gs-plugin-job-list-installed-apps: Use g_task_set_source_tag()




commit 066df522d68725b523ebdd870a2ea149c0672f8b
Author: Philip Withnall <pwithnall endlessos org>
Date:   Thu Mar 3 14:12:51 2022 +0000

    gs-plugin-job-list-installed-apps: Use g_task_set_source_tag()
    
    Rather than `g_task_set_name()`. `g_task_set_source_tag()` will call
    `g_task_set_name()` for us, so this is a superset of the functionality.
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>

 lib/gs-plugin-job-list-installed-apps.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/lib/gs-plugin-job-list-installed-apps.c b/lib/gs-plugin-job-list-installed-apps.c
index 24789e8ed..fa113c1aa 100644
--- a/lib/gs-plugin-job-list-installed-apps.c
+++ b/lib/gs-plugin-job-list-installed-apps.c
@@ -264,7 +264,7 @@ gs_plugin_job_list_installed_apps_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_list_installed_apps_run_async);
        g_task_set_task_data (task, g_object_ref (plugin_loader), (GDestroyNotify) g_object_unref);
 
        /* run each plugin, keeping a counter of pending operations which is


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]