[gnome-builder] libide/foundry: rename query callback



commit 9ce7d6dc12c3e68b215bd1f6173d5acd57403e1f
Author: Christian Hergert <chergert redhat com>
Date:   Wed Jul 13 17:50:00 2022 -0700

    libide/foundry: rename query callback
    
    This is a bit more obvious about what it's going to do. Also, allow any
    stage type since it doesn't really care.

 src/libide/foundry/ide-pipeline.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/libide/foundry/ide-pipeline.c b/src/libide/foundry/ide-pipeline.c
index 42b2cee6e..9f0ea1005 100644
--- a/src/libide/foundry/ide-pipeline.c
+++ b/src/libide/foundry/ide-pipeline.c
@@ -1038,15 +1038,15 @@ ide_pipeline_extension_removed (IdeExtensionSetAdapter *set,
 }
 
 static void
-build_command_query_cb (IdePipelineStage *stage,
-                        IdePipeline      *pipeline,
-                        GPtrArray        *targets,
-                        GCancellable     *cancellable,
-                        gpointer          user_data)
+ide_pipeline_always_incomplete (IdePipelineStage *stage,
+                                IdePipeline      *pipeline,
+                                GPtrArray        *targets,
+                                GCancellable     *cancellable,
+                                gpointer          user_data)
 {
   IDE_ENTRY;
 
-  g_assert (IDE_IS_PIPELINE_STAGE_LAUNCHER (stage));
+  g_assert (IDE_IS_PIPELINE_STAGE (stage));
   g_assert (IDE_IS_PIPELINE (pipeline));
   g_assert (!cancellable || G_IS_CANCELLABLE (cancellable));
   g_assert (user_data == NULL);
@@ -1102,7 +1102,7 @@ register_build_commands_stage (IdePipeline *self,
                             NULL);
       g_signal_connect (stage,
                         "query",
-                        G_CALLBACK (build_command_query_cb),
+                        G_CALLBACK (ide_pipeline_always_incomplete),
                         NULL);
       ide_pipeline_attach (self,
                            IDE_PIPELINE_PHASE_BUILD | IDE_PIPELINE_PHASE_AFTER,
@@ -1150,7 +1150,7 @@ register_post_install_commands_stage (IdePipeline *self,
                             NULL);
       g_signal_connect (stage,
                         "query",
-                        G_CALLBACK (build_command_query_cb),
+                        G_CALLBACK (ide_pipeline_always_incomplete),
                         NULL);
       ide_pipeline_attach (self,
                            IDE_PIPELINE_PHASE_INSTALL | IDE_PIPELINE_PHASE_AFTER,


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