Created new section for the Word Wrap shortcut. Increased height attribute to fit new section so a new page is not created.

This commit is contained in:
icarter09 2020-02-14 23:29:54 -05:00 committed by Michael Webster
parent c3b8a73695
commit 8a98e18511
2 changed files with 15 additions and 2 deletions

View File

@ -7,7 +7,7 @@
<object class="GtkShortcutsSection">
<property name="visible">1</property>
<property name="section-name">shortcuts</property>
<property name="max-height">12</property>
<property name="max-height">14</property>
<child>
<object class="GtkShortcutsGroup">
<property name="visible">1</property>
@ -239,6 +239,19 @@
</child>
</object>
</child>
<child>
<object class="GtkShortcutsGroup">
<property name="visible">1</property>
<property name="title" translatable="yes">Layout</property>
<child>
<object class="GtkShortcutsShortcut">
<property name="visible">1</property>
<property name="accelerator">&lt;ctrl&gt;R</property>
<property name="title" translatable="yes">Toggle Word Wrap</property>
</object>
</child>
</object>
</child>
<child>
<object class="GtkShortcutsGroup">
<property name="visible">1</property>

View File

@ -162,7 +162,7 @@ static const GtkToggleActionEntry xed_always_sensitive_toggle_menu_entries[] =
{ "ViewFullscreen", "view-fullscreen", N_("Fullscreen"), "F11",
N_("Edit text in fullscreen"),
G_CALLBACK (_xed_cmd_view_toggle_fullscreen_mode), FALSE },
{ "ViewWordWrap", NULL, N_("_Word wrap"), NULL,
{ "ViewWordWrap", NULL, N_("_Word wrap"), "<control>R",
N_("Set word wrap for the current document"),
G_CALLBACK (_xed_cmd_view_toggle_word_wrap), FALSE },
{ "ViewOverviewMap", NULL, N_("_Overview Map"), NULL,