[gnome-builder] buildsystem: init build systems that are common initables



commit 49bc4355055f1e58d08aad58fc0ef44ea79b94ce
Author: Christian Hergert <chergert redhat com>
Date:   Fri Jan 11 13:03:07 2019 -0800

    buildsystem: init build systems that are common initables

 src/plugins/buildsystem/gbp-buildsystem-workbench-addin.c | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/src/plugins/buildsystem/gbp-buildsystem-workbench-addin.c 
b/src/plugins/buildsystem/gbp-buildsystem-workbench-addin.c
index e57fdda39..7d7bbcbc7 100644
--- a/src/plugins/buildsystem/gbp-buildsystem-workbench-addin.c
+++ b/src/plugins/buildsystem/gbp-buildsystem-workbench-addin.c
@@ -213,6 +213,13 @@ discover_cb (GObject      *object,
 
   ide_workbench_set_build_system (self->workbench, build_system);
 
+  if (G_IS_ASYNC_INITABLE (build_system))
+    g_async_initable_init_async (G_ASYNC_INITABLE (build_system),
+                                 G_PRIORITY_DEFAULT,
+                                 NULL, NULL, NULL);
+  else if (G_IS_INITABLE (build_system))
+    g_initable_init (G_INITABLE (build_system), NULL, NULL);
+
   ide_task_return_boolean (task, TRUE);
 }
 


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