[gnome-builder/gnome-builder-3-26] pipeline: use gdk_threads_add_idle_full()



commit 91d6d999dbb1c4d592b2261279fbde5ae97483f0
Author: Christian Hergert <chergert redhat com>
Date:   Wed Oct 4 17:57:59 2017 -0700

    pipeline: use gdk_threads_add_idle_full()
    
    Just a preference of mine.

 libide/buildsystem/ide-build-pipeline.c |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/libide/buildsystem/ide-build-pipeline.c b/libide/buildsystem/ide-build-pipeline.c
index 92e1e2e..efdb046 100644
--- a/libide/buildsystem/ide-build-pipeline.c
+++ b/libide/buildsystem/ide-build-pipeline.c
@@ -1637,11 +1637,10 @@ ide_build_pipeline_queue_flush (IdeBuildPipeline *self)
 
   g_assert (IDE_IS_BUILD_PIPELINE (self));
 
-  g_timeout_add_full (G_PRIORITY_DEFAULT,
-                      0,
-                      ide_build_pipeline_do_flush,
-                      g_object_ref (self),
-                      g_object_unref);
+  gdk_threads_add_idle_full (G_PRIORITY_LOW,
+                             ide_build_pipeline_do_flush,
+                             g_object_ref (self),
+                             g_object_unref);
 
   IDE_EXIT;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]