[gnome-text-editor] spellcheck: simplify menu
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-text-editor] spellcheck: simplify menu
- Date: Sat, 17 Jul 2021 18:58:02 +0000 (UTC)
commit 11a1f4cf1a858fcca39b36fab9ee70aeda31c512
Author: Christian Hergert <chergert redhat com>
Date: Sat Jul 17 11:44:33 2021 -0700
spellcheck: simplify menu
We don't get sub-sections anyway, so remove the intermediate section.
src/editor-spell-menu.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/src/editor-spell-menu.c b/src/editor-spell-menu.c
index cb3ef76..36c68f6 100644
--- a/src/editor-spell-menu.c
+++ b/src/editor-spell-menu.c
@@ -54,7 +54,6 @@ editor_spell_menu_new (void)
{
g_autoptr(GMenu) menu = g_menu_new ();
g_autoptr(GMenu) corrections_menu = g_menu_new ();
- g_autoptr(GMenu) corrections_section = g_menu_new ();
g_autoptr(GMenu) languages_menu = g_menu_new ();
g_autoptr(GMenuItem) languages_item = g_menu_item_new_submenu (_("Languages"), G_MENU_MODEL
(languages_menu));
g_autoptr(GMenuItem) add_item = g_menu_item_new (_("Add to Dictionary"), "spelling.add");
@@ -66,10 +65,9 @@ editor_spell_menu_new (void)
g_menu_item_set_attribute (check_item, "role", "s", "check");
g_menu_item_set_attribute (languages_item, "submenu-action", "s", "spellcheck.enabled");
- g_menu_append_section (corrections_section, NULL, G_MENU_MODEL (corrections_menu));
- g_menu_append_item (corrections_section, add_item);
- g_menu_append_item (corrections_section, ignore_item);
- g_menu_append_section (menu, NULL, G_MENU_MODEL (corrections_section));
+ g_menu_append_section (menu, NULL, G_MENU_MODEL (corrections_menu));
+ g_menu_append_item (menu, add_item);
+ g_menu_append_item (menu, ignore_item);
g_menu_append_item (menu, check_item);
g_menu_append_item (menu, languages_item);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]