[gnome-builder] libide/gui: give access to project settings as actiongroup
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide/gui: give access to project settings as actiongroup
- Date: Tue, 26 Jul 2022 01:00:36 +0000 (UTC)
commit 838d0a008cd9c730ef1f42eccabf429b3fdc7a44
Author: Christian Hergert <chergert redhat com>
Date: Mon Jul 25 17:59:11 2022 -0700
libide/gui: give access to project settings as actiongroup
src/libide/gui/ide-workbench.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
---
diff --git a/src/libide/gui/ide-workbench.c b/src/libide/gui/ide-workbench.c
index d8a2e08b4..ba89d3119 100644
--- a/src/libide/gui/ide-workbench.c
+++ b/src/libide/gui/ide-workbench.c
@@ -762,13 +762,25 @@ static void
insert_action_groups_foreach_cb (IdeWorkspace *workspace,
gpointer user_data)
{
+ g_autoptr(IdeSettingsActionGroup) project_settings_group = NULL;
+ g_autoptr(GSettings) project_settings = NULL;
IdeWorkbench *self = user_data;
g_assert (IDE_IS_MAIN_THREAD ());
g_assert (IDE_IS_WORKBENCH (self));
g_assert (IDE_IS_WORKSPACE (workspace));
+ g_assert (IDE_IS_CONTEXT (self->context));
+ g_assert (ide_context_has_project (self->context));
add_remove_foundry_action_groups (self, workspace, TRUE);
+
+ project_settings = ide_context_ref_project_settings (self->context);
+ project_settings_group = g_object_new (IDE_TYPE_SETTINGS_ACTION_GROUP,
+ "settings", project_settings,
+ NULL);
+ gtk_widget_insert_action_group (GTK_WIDGET (workspace),
+ "project-settings",
+ G_ACTION_GROUP (project_settings_group));
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]