[gnome-builder] plugins/spellcheck: fix access to spelling actions
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] plugins/spellcheck: fix access to spelling actions
- Date: Sun, 31 Jul 2022 02:35:11 +0000 (UTC)
commit ede73b0d9a76654e9b0cb725cae34b55ab1f831d
Author: Christian Hergert <chergert redhat com>
Date: Sat Jul 30 19:34:59 2022 -0700
plugins/spellcheck: fix access to spelling actions
src/plugins/spellcheck/editor-spell-menu.c | 10 +++++-----
src/plugins/spellcheck/gbp-spell-editor-page-addin.c | 6 +++---
2 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/plugins/spellcheck/editor-spell-menu.c b/src/plugins/spellcheck/editor-spell-menu.c
index c1ee5a5ad..eca23769e 100644
--- a/src/plugins/spellcheck/editor-spell-menu.c
+++ b/src/plugins/spellcheck/editor-spell-menu.c
@@ -88,7 +88,7 @@ editor_spell_corrections_get_item_attributes (GMenuModel *model,
correction = self->corrections[position];
ht = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, (GDestroyNotify)g_variant_unref);
- g_hash_table_insert (ht, g_strdup (G_MENU_ATTRIBUTE_ACTION), g_variant_ref_sink (g_variant_new_string
("spelling.correct")));
+ g_hash_table_insert (ht, g_strdup (G_MENU_ATTRIBUTE_ACTION), g_variant_ref_sink (g_variant_new_string
("page.spelling.correct")));
g_hash_table_insert (ht, g_strdup (G_MENU_ATTRIBUTE_TARGET), g_variant_ref_sink (g_variant_new_string
(correction)));
g_hash_table_insert (ht, g_strdup (G_MENU_ATTRIBUTE_LABEL), g_variant_ref_sink (g_variant_new_string
(correction)));
@@ -233,7 +233,7 @@ populate_languages (GMenu *menu)
g_assert (G_IS_MENU (group_menu));
item = g_menu_item_new (name, NULL);
- g_menu_item_set_action_and_target (item, "spelling.language", "s", code);
+ g_menu_item_set_action_and_target (item, "page.spelling.language", "s", code);
g_menu_append_item (group_menu, item);
}
}
@@ -245,9 +245,9 @@ editor_spell_menu_new (void)
static GMenuItem *languages_item;
g_autoptr(GMenu) menu = g_menu_new ();
g_autoptr(GMenuModel) corrections_menu = editor_spell_corrections_new ();
- g_autoptr(GMenuItem) add_item = g_menu_item_new (_("Add to Dictionary"), "spelling.add");
- g_autoptr(GMenuItem) ignore_item = g_menu_item_new (_("Ignore"), "spelling.ignore");
- g_autoptr(GMenuItem) check_item = g_menu_item_new (_("Check Spelling"), "spelling.enabled");
+ g_autoptr(GMenuItem) add_item = g_menu_item_new (_("Add to Dictionary"), "page.spelling.add");
+ g_autoptr(GMenuItem) ignore_item = g_menu_item_new (_("Ignore"), "page.spelling.ignore");
+ g_autoptr(GMenuItem) check_item = g_menu_item_new (_("Check Spelling"), "page.spelling.enabled");
if (languages_menu == NULL)
{
diff --git a/src/plugins/spellcheck/gbp-spell-editor-page-addin.c
b/src/plugins/spellcheck/gbp-spell-editor-page-addin.c
index f3a1106f0..0f691caca 100644
--- a/src/plugins/spellcheck/gbp-spell-editor-page-addin.c
+++ b/src/plugins/spellcheck/gbp-spell-editor-page-addin.c
@@ -221,9 +221,9 @@ gbp_spell_editor_page_addin_load (IdeEditorPageAddin *addin,
self);
g_action_map_add_action (G_ACTION_MAP (self->actions),
gbp_spell_buffer_addin_get_enabled_action (self->buffer_addin));
- gtk_widget_insert_action_group (GTK_WIDGET (page),
- "spelling",
- G_ACTION_GROUP (self->actions));
+ panel_widget_insert_action_group (PANEL_WIDGET (page),
+ "spelling",
+ G_ACTION_GROUP (self->actions));
g_signal_connect_object (view,
"populate-menu",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]