[gnome-builder] flatpak: set task priorities
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] flatpak: set task priorities
- Date: Sat, 9 Sep 2017 22:59:01 +0000 (UTC)
commit b9149f14bb2c4b2b98888ab1ed18a22b1ed9a1c0
Author: Christian Hergert <chergert redhat com>
Date: Sat Sep 9 15:49:10 2017 -0700
flatpak: set task priorities
We want these lower than UI priority.
plugins/flatpak/gbp-flatpak-runtime-provider.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plugins/flatpak/gbp-flatpak-runtime-provider.c b/plugins/flatpak/gbp-flatpak-runtime-provider.c
index 0f41f29..ad2251f 100644
--- a/plugins/flatpak/gbp-flatpak-runtime-provider.c
+++ b/plugins/flatpak/gbp-flatpak-runtime-provider.c
@@ -377,6 +377,7 @@ gbp_flatpak_runtime_provider_install_async (IdeRuntimeProvider *provider,
task = g_task_new (self, cancellable, callback, user_data);
g_task_set_source_tag (task, gbp_flatpak_runtime_provider_install_async);
+ g_task_set_priority (task, G_PRIORITY_LOW);
if (!g_str_has_prefix (runtime_id, "flatpak:"))
IDE_GOTO (unknown_runtime_id);
@@ -450,6 +451,7 @@ gbp_flatpak_runtime_provider_locate_sdk_async (GbpFlatpakRuntimeProvider *self,
task = g_task_new (self, cancellable, callback, user_data);
g_task_set_source_tag (task, gbp_flatpak_runtime_provider_locate_sdk_async);
+ g_task_set_priority (task, G_PRIORITY_LOW);
IDE_EXIT;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]