[gnome-builder/wip/gtk4-port] libide/foundry: add more handler parameters
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port] libide/foundry: add more handler parameters
- Date: Fri, 24 Jun 2022 07:03:50 +0000 (UTC)
commit eaaec695228677353c7a898da9f0dded1d58f00a
Author: Christian Hergert <chergert redhat com>
Date: Thu Jun 23 23:05:58 2022 -0700
libide/foundry: add more handler parameters
These are nice to have from handlers to avoid reverse-lookups.
src/libide/foundry/ide-run-manager.c | 8 ++++++--
src/libide/foundry/ide-run-manager.h | 2 ++
2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/libide/foundry/ide-run-manager.c b/src/libide/foundry/ide-run-manager.c
index 0a46f3a05..1785df6b4 100644
--- a/src/libide/foundry/ide-run-manager.c
+++ b/src/libide/foundry/ide-run-manager.c
@@ -774,8 +774,12 @@ ide_run_manager_prepare_run_context (IdeRunManager *self,
* to inject any command wrapper it needs. This might be something like
* gdb, or valgrind, etc.
*/
- if (self->handler && self->handler->handler)
- self->handler->handler (self, run_context, self->handler->handler_data);
+ if (self->handler != NULL && self->handler->handler != NULL)
+ self->handler->handler (self,
+ pipeline,
+ run_command,
+ run_context,
+ self->handler->handler_data);
/* Now push a new layer so that we can keep those values separate from
* what is configured in the run command. We use an expansion layer so
diff --git a/src/libide/foundry/ide-run-manager.h b/src/libide/foundry/ide-run-manager.h
index 61c6f7efc..eeba81a0b 100644
--- a/src/libide/foundry/ide-run-manager.h
+++ b/src/libide/foundry/ide-run-manager.h
@@ -36,6 +36,8 @@ IDE_AVAILABLE_IN_ALL
G_DECLARE_FINAL_TYPE (IdeRunManager, ide_run_manager, IDE, RUN_MANAGER, IdeObject)
typedef void (*IdeRunHandler) (IdeRunManager *self,
+ IdePipeline *pipeline,
+ IdeRunCommand *run_command,
IdeRunContext *run_context,
gpointer user_data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]