Commit 6a454de6 authored by Christian Hergert's avatar Christian Hergert
Browse files

pipeline: add IdeBuildPhase to started signal

This let's the listener know what stage we are advancing the pipeline to.

https://bugzilla.gnome.org/show_bug.cgi?id=779526
parent 9453d5b9
......@@ -195,6 +195,7 @@ ide_build_manager_notify_message (IdeBuildManager *self,
static void
ide_build_manager_pipeline_started (IdeBuildManager *self,
IdeBuildPhase phase,
IdeBuildPipeline *pipeline)
{
IDE_ENTRY;
......
......@@ -1006,6 +1006,7 @@ ide_build_pipeline_class_init (IdeBuildPipelineClass *klass)
/**
* IdeBuildPipeline::started:
* @self: An #IdeBuildPipeline
* @phase: the #IdeBuildPhase for which we are advancing
*
* This signal is emitted when the pipeline has started executing in
* response to ide_build_pipeline_execute_async() being called.
......@@ -1015,7 +1016,8 @@ ide_build_pipeline_class_init (IdeBuildPipelineClass *klass)
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
G_CALLBACK (ide_build_pipeline_real_started),
NULL, NULL, NULL, G_TYPE_NONE, 0);
NULL, NULL, NULL,
G_TYPE_NONE, 1, IDE_TYPE_BUILD_PHASE);
/**
* IdeBuildPipeline::finished:
......@@ -1431,10 +1433,8 @@ ide_build_pipeline_do_flush (gpointer data)
}
}
/*
* Notify any observers that a build (of some sort) is about to start.
*/
g_signal_emit (self, signals [STARTED], 0);
/* Notify any observers that a build (of some sort) is about to start. */
g_signal_emit (self, signals [STARTED], 0, task_data->phase);
switch (task_data->type)
{
......
......@@ -170,6 +170,7 @@ ide_build_panel_update_running_time (IdeBuildPanel *self)
static void
ide_build_panel_started (IdeBuildPanel *self,
IdeBuildPhase phase,
IdeBuildPipeline *pipeline)
{
IDE_ENTRY;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment