summaryrefslogtreecommitdiff
path: root/font-viewer/sushi-font-loader.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-01-08 20:43:13 +0100
committerraveit65 <[email protected]>2017-02-17 12:28:22 +0100
commita925031c13621b333be3e16bda2006fef75592c8 (patch)
tree19187d44f9b5a8ccae7c82e3bef5003d3a042986 /font-viewer/sushi-font-loader.c
parent99f4ac126c7bd12bc29d9c47fa90bb8b1a37301d (diff)
downloadmate-control-center-a925031c13621b333be3e16bda2006fef75592c8.tar.bz2
mate-control-center-a925031c13621b333be3e16bda2006fef75592c8.tar.xz
Fontviewer: Replace deprecated method with main context invocation
taken from: https://git.gnome.org/browse/gnome-font-viewer/commit/?id=beb0a7c
Diffstat (limited to 'font-viewer/sushi-font-loader.c')
-rw-r--r--font-viewer/sushi-font-loader.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/font-viewer/sushi-font-loader.c b/font-viewer/sushi-font-loader.c
index 1991a861..de6d1d99 100644
--- a/font-viewer/sushi-font-loader.c
+++ b/font-viewer/sushi-font-loader.c
@@ -141,9 +141,7 @@ font_load_job (GIOSchedulerJob *sched_job,
if (error != NULL)
g_simple_async_result_take_error (job->result, error);
- g_io_scheduler_job_send_to_mainloop_async (sched_job,
- font_load_job_callback,
- job, NULL);
+ g_main_context_invoke (NULL, font_load_job_callback, job);
return FALSE;
}