[gnome-font-viewer] Replace deprecated method with main context invocation
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-font-viewer] Replace deprecated method with main context invocation
- Date: Mon, 19 Jan 2015 22:09:36 +0000 (UTC)
commit beb0a7c67b8a1f72c9c876943fbe76574bbec15b
Author: Robert Roth <robert roth off gmail com>
Date: Sat Jan 3 13:16:03 2015 +0200
Replace deprecated method with main context invocation
https://bugzilla.gnome.org/show_bug.cgi?id=739224
src/font-model.c | 8 ++++----
src/sushi-font-loader.c | 4 +---
2 files changed, 5 insertions(+), 7 deletions(-)
---
diff --git a/src/font-model.c b/src/font-model.c
index ffe33f8..d27ea64 100644
--- a/src/font-model.c
+++ b/src/font-model.c
@@ -298,8 +298,8 @@ ensure_thumbnails_job (GIOSchedulerJob *job,
g_clear_object (&thumb_file);
g_clear_object (&info);
- g_io_scheduler_job_send_to_mainloop_async (job, one_thumbnail_done,
- thumb_info, NULL);
+ g_main_context_invoke (NULL, one_thumbnail_done,
+ thumb_info);
}
g_list_free (thumb_infos);
@@ -449,8 +449,8 @@ load_font_infos (GIOSchedulerJob *job,
if (g_cancellable_is_cancelled (cancellable))
load_font_infos_data_free (data);
else
- g_io_scheduler_job_send_to_mainloop_async (job, font_infos_loaded,
- data, load_font_infos_data_free);
+ g_main_context_invoke_full (NULL, G_PRIORITY_DEFAULT, font_infos_loaded,
+ data, load_font_infos_data_free);
return FALSE;
}
diff --git a/src/sushi-font-loader.c b/src/sushi-font-loader.c
index 8925bfc..9fb0f77 100644
--- a/src/sushi-font-loader.c
+++ b/src/sushi-font-loader.c
@@ -139,9 +139,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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]