[gnome-builder/wip/gtk4-port] plugins/shellcmd: GbpShellcmdRunCommand is user-defined



commit 8b9f9a628900dbe3c298e9012b0bda2e5d7a9b39
Author: Christian Hergert <chergert redhat com>
Date:   Fri Jun 24 15:03:50 2022 -0700

    plugins/shellcmd: GbpShellcmdRunCommand is user-defined
    
    So we should always set this kind property.

 src/plugins/shellcmd/gbp-shellcmd-run-command.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/plugins/shellcmd/gbp-shellcmd-run-command.c b/src/plugins/shellcmd/gbp-shellcmd-run-command.c
index 0e4798841..89a63b3c6 100644
--- a/src/plugins/shellcmd/gbp-shellcmd-run-command.c
+++ b/src/plugins/shellcmd/gbp-shellcmd-run-command.c
@@ -250,6 +250,9 @@ gbp_shellcmd_run_command_init (GbpShellcmdRunCommand *self)
 {
   self->locality = GBP_SHELLCMD_LOCALITY_PIPELINE;
 
+  ide_run_command_set_kind (IDE_RUN_COMMAND (self),
+                            IDE_RUN_COMMAND_KIND_USER_DEFINED);
+
   g_signal_connect (self, "notify::accelerator", G_CALLBACK (accelerator_label_changed_cb), NULL);
   g_signal_connect (self, "notify::cwd", G_CALLBACK (subtitle_changed_cb), NULL);
   g_signal_connect (self, "notify::argv", G_CALLBACK (subtitle_changed_cb), NULL);


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