[gnome-text-editor: 1/2] Add missing mnemonics
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-text-editor: 1/2] Add missing mnemonics
- Date: Sun, 2 May 2021 01:54:39 +0000 (UTC)
commit 1a16a6028912cbd5596f15dab78aceeadda522c3
Author: vanadiae <vanadiae35 gmail com>
Date: Sat May 1 22:58:16 2021 +0200
Add missing mnemonics
Text Editor has a good mnemonic coverage, but all those were missing.
src/editor-window.ui | 3 ++-
src/menus.ui | 28 ++++++++++++++--------------
2 files changed, 16 insertions(+), 15 deletions(-)
---
diff --git a/src/editor-window.ui b/src/editor-window.ui
index 26c4410..5bc8f5c 100644
--- a/src/editor-window.ui
+++ b/src/editor-window.ui
@@ -58,7 +58,8 @@
<property name="spacing">6</property>
<child>
<object class="GtkMenuButton" id="open_menu_button">
- <property name="label" translatable="yes">Open</property>
+ <property name="label" translatable="yes">_Open</property>
+ <property name="use-underline">True</property>
<property name="tooltip-text" translatable="yes">Open recent document (Ctrl+K)</property>
<property name="popover">
<object class="EditorOpenPopover" id="open_menu_popover">
diff --git a/src/menus.ui b/src/menus.ui
index 600a068..91eb273 100644
--- a/src/menus.ui
+++ b/src/menus.ui
@@ -51,46 +51,46 @@
<section>
<attribute name="label" translatable="yes">Show</attribute>
<item>
- <attribute name="label" translatable="yes">Line Numbers</attribute>
+ <attribute name="label" translatable="yes">_Line Numbers</attribute>
<attribute name="action">settings.show-line-numbers</attribute>
</item>
<item>
- <attribute name="label" translatable="yes">Right Margin</attribute>
+ <attribute name="label" translatable="yes">_Right Margin</attribute>
<attribute name="action">settings.show-right-margin</attribute>
</item>
</section>
<section>
<attribute name="label" translatable="yes">Indentation</attribute>
<item>
- <attribute name="label" translatable="yes">Tabs</attribute>
+ <attribute name="label" translatable="yes">_Tabs</attribute>
<attribute name="action">settings.indent-style</attribute>
<attribute name="target" type="s">'tab'</attribute>
</item>
<item>
- <attribute name="label" translatable="yes">Spaces</attribute>
+ <attribute name="label" translatable="yes">_Spaces</attribute>
<attribute name="action">settings.indent-style</attribute>
<attribute name="target" type="s">'space'</attribute>
</item>
<submenu>
- <attribute name="label" translatable="yes">Spaces Per Tab</attribute>
+ <attribute name="label" translatable="yes">Spaces _Per Tab</attribute>
<section>
<item>
- <attribute name="label" translatable="yes">2</attribute>
+ <attribute name="label" translatable="yes">_2</attribute>
<attribute name="action">settings.tab-width</attribute>
<attribute name="target" type="u">2</attribute>
</item>
<item>
- <attribute name="label" translatable="yes">4</attribute>
+ <attribute name="label" translatable="yes">_4</attribute>
<attribute name="action">settings.tab-width</attribute>
<attribute name="target" type="u">4</attribute>
</item>
<item>
- <attribute name="label" translatable="yes">6</attribute>
+ <attribute name="label" translatable="yes">_6</attribute>
<attribute name="action">settings.tab-width</attribute>
<attribute name="target" type="u">6</attribute>
</item>
<item>
- <attribute name="label" translatable="yes">8</attribute>
+ <attribute name="label" translatable="yes">_8</attribute>
<attribute name="action">settings.tab-width</attribute>
<attribute name="target" type="u">8</attribute>
</item>
@@ -99,15 +99,15 @@
</section>
<section>
<item>
- <attribute name="label" translatable="yes">Text Wrapping</attribute>
+ <attribute name="label" translatable="yes">T_ext Wrapping</attribute>
<attribute name="action">settings.wrap-text</attribute>
</item>
<item>
- <attribute name="label" translatable="yes">Automatic Margin Position</attribute>
+ <attribute name="label" translatable="yes">_Automatic Margin Position</attribute>
<attribute name="action">settings.discover-settings</attribute>
</item>
<item>
- <attribute name="label" translatable="yes">Highlight Mode</attribute>
+ <attribute name="label" translatable="yes">_Highlight Mode</attribute>
<attribute name="action">page.change-language</attribute>
</item>
</section>
@@ -171,7 +171,7 @@
</section>
<section>
<item>
- <attribute name="label" translatable="yes">Move to New Window</attribute>
+ <attribute name="label" translatable="yes">_Move to New Window</attribute>
<attribute name="action">tab.move-to-new-window</attribute>
<attribute name="accel"><control><shift>n</attribute>
</item>
@@ -182,7 +182,7 @@
<attribute name="action">tab.close-other-tabs</attribute>
</item>
<item>
- <attribute name="label" translatable="yes">Close</attribute>
+ <attribute name="label" translatable="yes">_Close</attribute>
<attribute name="action">tab.close</attribute>
<attribute name="accel"><control>w</attribute>
</item>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]