[gnome-builder] libide/core: reverse action id prefix ordering
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide/core: reverse action id prefix ordering
- Date: Wed, 27 Jul 2022 03:50:38 +0000 (UTC)
commit 5ce11ba930edb3e0bf36f8924cea82fd6c3e2dff
Author: Christian Hergert <chergert redhat com>
Date: Tue Jul 26 20:44:11 2022 -0700
libide/core: reverse action id prefix ordering
settings.app: and settings.project: lend themselves nicer when thinking
about things from a top-down selector working towards specificity.
src/libide/core/ide-context.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/libide/core/ide-context.c b/src/libide/core/ide-context.c
index 70a72dd20..c813f8a1a 100644
--- a/src/libide/core/ide-context.c
+++ b/src/libide/core/ide-context.c
@@ -682,7 +682,7 @@ ide_context_ref_settings (IdeContext *self,
if ((muxer = ide_context_ref_action_muxer (self)))
{
- g_autofree char *prefix = g_strconcat ("project.settings:", schema_id, NULL);
+ g_autofree char *prefix = g_strconcat ("settings.project:", schema_id, NULL);
GActionGroup *group = ide_action_muxer_get_action_group (muxer, prefix);
if (IDE_IS_SETTINGS (group))
@@ -829,8 +829,8 @@ ide_context_register_settings (IdeContext *self,
{
g_autoptr(IdeSettings) project_settings = ide_settings_new (project_id, schema_id, NULL, FALSE);
g_autoptr(IdeSettings) app_settings = ide_settings_new (project_id, schema_id, NULL, TRUE);
- g_autofree char *project_group = g_strconcat ("project.settings:", schema_id, NULL);
- g_autofree char *app_group = g_strconcat ("app.settings:", schema_id, NULL);
+ g_autofree char *project_group = g_strconcat ("settings.project:", schema_id, NULL);
+ g_autofree char *app_group = g_strconcat ("settings.app:", schema_id, NULL);
ide_action_muxer_insert_action_group (muxer, app_group, G_ACTION_GROUP (app_settings));
ide_action_muxer_insert_action_group (muxer, project_group, G_ACTION_GROUP (project_settings));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]