Use g_task replaces the deprecated g_io_scheduler, removing compilation warnings
trash-empty.c: In function 'trash_empty_job':
trash-empty.c:217:3: warning: 'g_io_scheduler_job_send_to_mainloop_async' is deprecated: Use 'g_main_context_invoke' instead [-Wdeprecated-declarations]
g_io_scheduler_job_send_to_mainloop_async (job,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/gio/gio.h:89,
from trash-empty.c:22:
/usr/include/glib-2.0/gio/gioscheduler.h:47:10: note: declared here
void g_io_scheduler_job_send_to_mainloop_async (GIOSchedulerJob *job,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
trash-empty.c: In function 'trash_empty_start':
trash-empty.c:267:3: warning: 'g_io_scheduler_push_job' is deprecated: Use '"GThreadPool or g_task_run_in_thread"' instead [-Wdeprecated-declarations]
g_io_scheduler_push_job (trash_empty_job, NULL, NULL, 0, cancellable);
Use
g_task
replaces the deprecatedg_io_scheduler
, removing compilation warnings