[gnome-builder] foundry: add IdePipeline::loaded signal



commit 81a0cb6f730f9fc83363a21fe0b4598867814f79
Author: Christian Hergert <chergert redhat com>
Date:   Thu Jan 17 18:26:29 2019 -0800

    foundry: add IdePipeline::loaded signal

 src/libide/foundry/ide-pipeline.c | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
---
diff --git a/src/libide/foundry/ide-pipeline.c b/src/libide/foundry/ide-pipeline.c
index 9bffb53b1..df2584554 100644
--- a/src/libide/foundry/ide-pipeline.c
+++ b/src/libide/foundry/ide-pipeline.c
@@ -377,6 +377,7 @@ enum {
   DIAGNOSTIC,
   STARTED,
   FINISHED,
+  LOADED,
   N_SIGNALS
 };
 
@@ -1139,6 +1140,8 @@ ide_pipeline_load_cb (IdleLoadState *state)
   state->self->loaded = TRUE;
   state->self->idle_addins_load_source = 0;
 
+  g_signal_emit (state->self, signals [LOADED], 0);
+
   return G_SOURCE_REMOVE;
 }
 
@@ -1690,6 +1693,21 @@ ide_pipeline_class_init (IdePipelineClass *klass)
                                 G_CALLBACK (ide_pipeline_real_finished),
                                 NULL, NULL, NULL,
                                 G_TYPE_NONE, 1, G_TYPE_BOOLEAN);
+
+  /**
+   * IdePipeline::loaded:
+   *
+   * The "loaded" signal is emitted after the pipeline has finished
+   * loading addins.
+   *
+   * Since: 3.32
+   */
+  signals [LOADED] =
+    g_signal_new_class_handler ("loaded",
+                                G_TYPE_FROM_CLASS (klass),
+                                G_SIGNAL_RUN_LAST,
+                                NULL, NULL, NULL, NULL,
+                                G_TYPE_NONE, 0);
 }
 
 static void


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