[gnome-builder/wip/gtk4-port: 1465/1774] plugins/buildui: use project prefs to create run commands
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port: 1465/1774] plugins/buildui: use project prefs to create run commands
- Date: Mon, 11 Jul 2022 22:31:46 +0000 (UTC)
commit 220476593c0ae0be4619f7946084febf65461069
Author: Christian Hergert <chergert redhat com>
Date: Fri Jun 10 17:42:26 2022 -0700
plugins/buildui: use project prefs to create run commands
src/plugins/buildui/gbp-buildui-runnables-dialog.c | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/src/plugins/buildui/gbp-buildui-runnables-dialog.c
b/src/plugins/buildui/gbp-buildui-runnables-dialog.c
index 09854be33..9b8e96399 100644
--- a/src/plugins/buildui/gbp-buildui-runnables-dialog.c
+++ b/src/plugins/buildui/gbp-buildui-runnables-dialog.c
@@ -166,7 +166,20 @@ new_run_command_action (GtkWidget *widget,
const char *action_name,
GVariant *param)
{
- gbp_buildui_runnables_dialog_set_page (GBP_BUILDUI_RUNNABLES_DIALOG (widget), "new");
+ GbpBuilduiRunnablesDialog *self = (GbpBuilduiRunnablesDialog *)widget;
+ IdeWorkspace *workspace;
+
+ IDE_ENTRY;
+
+ g_assert (GBP_IS_BUILDUI_RUNNABLES_DIALOG (self));
+
+ workspace = ide_widget_get_workspace (GTK_WIDGET (self));
+ gtk_widget_activate_action (GTK_WIDGET (workspace),
+ "workbench.configure-page",
+ "s", "commands");
+ gtk_window_destroy (GTK_WINDOW (self));
+
+ IDE_EXIT;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]