[gnome-builder: 2/3] build-stage: set the priority a better way
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder: 2/3] build-stage: set the priority a better way
- Date: Thu, 25 Jan 2018 12:32:21 +0000 (UTC)
commit 35d41268d01136a2224c5c7c81225eced6b3faa4
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date: Thu Jan 25 14:04:34 2018 +0530
build-stage: set the priority a better way
g_task_set_priority() prefers second argument to be
of form G_PRIORITY_*.
The current variable, TRUE, is less documenting regarding
the intention of the variable.
As said by cherget, use G_PRIORITY_LOW.
src/libide/buildsystem/ide-build-stage-transfer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libide/buildsystem/ide-build-stage-transfer.c
b/src/libide/buildsystem/ide-build-stage-transfer.c
index 9483b115a..f2fd6a467 100644
--- a/src/libide/buildsystem/ide-build-stage-transfer.c
+++ b/src/libide/buildsystem/ide-build-stage-transfer.c
@@ -96,7 +96,7 @@ ide_build_stage_transfer_execute_async (IdeBuildStage *stage,
task = g_task_new (self, cancellable, callback, user_data);
g_task_set_source_tag (task, ide_build_stage_transfer_execute_async);
- g_task_set_priority (task, TRUE);
+ g_task_set_priority (task, G_PRIORITY_LOW);
g_signal_connect (task,
"notify::completed",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]