[gnome-builder/wip/gtk4-port: 1110/1774] libide/foundry: add constructor for run command




commit 598a9337f27b1dd2fd546b89da0eedca72699ba6
Author: Christian Hergert <chergert redhat com>
Date:   Sat May 21 13:17:19 2022 -0700

    libide/foundry: add constructor for run command

 src/libide/foundry/ide-run-command.c | 6 ++++++
 src/libide/foundry/ide-run-command.h | 2 ++
 2 files changed, 8 insertions(+)
---
diff --git a/src/libide/foundry/ide-run-command.c b/src/libide/foundry/ide-run-command.c
index 1b38fcb87..8772208a8 100644
--- a/src/libide/foundry/ide-run-command.c
+++ b/src/libide/foundry/ide-run-command.c
@@ -172,6 +172,12 @@ ide_run_command_init (IdeRunCommand *self)
 {
 }
 
+IdeRunCommand *
+ide_run_command_new (void)
+{
+  return g_object_new (IDE_TYPE_RUN_COMMAND, NULL);
+}
+
 const char *
 ide_run_command_get_id (IdeRunCommand *self)
 {
diff --git a/src/libide/foundry/ide-run-command.h b/src/libide/foundry/ide-run-command.h
index 2d4e84784..72b45bc33 100644
--- a/src/libide/foundry/ide-run-command.h
+++ b/src/libide/foundry/ide-run-command.h
@@ -38,6 +38,8 @@ struct _IdeRunCommandClass
   GObjectClass parent_class;
 };
 
+IDE_AVAILABLE_IN_ALL
+IdeRunCommand      *ide_run_command_new              (void);
 IDE_AVAILABLE_IN_ALL
 const char         *ide_run_command_get_id           (IdeRunCommand      *self);
 IDE_AVAILABLE_IN_ALL


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