Commit 3ec741df authored by Corey Daley's avatar Corey Daley Committed by Sébastien Lafargue

menus: Use Gnome >= 3.32 menus guidelines.

https://gitlab.gnome.org/GNOME/Initiatives/wikis/App-Menu-Retirement

Fixes #76
parent 69144d78
......@@ -391,7 +391,7 @@
</section>
<section>
<item>
<attribute name="label" translatable="yes">_About</attribute>
<attribute name="label" translatable="yes">_About Text Editor</attribute>
<attribute name="hidden-when">macos-menubar</attribute>
<attribute name="action">app.about</attribute>
</item>
......
......@@ -117,7 +117,7 @@
<attribute name="action">app.help</attribute>
</item>
<item>
<attribute name="label" translatable="yes">_About</attribute>
<attribute name="label" translatable="yes">_About Text Editor</attribute>
<attribute name="action">app.about</attribute>
</item>
</section>
......
<?xml version="1.0"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<menu id="app-menu">
<section>
<attribute name="id">app-commands-section</attribute>
<item>
<attribute name="label" translatable="yes">_New Window</attribute>
<attribute name="action">app.new-window</attribute>
</item>
</section>
<section>
<attribute name="id">preferences-section</attribute>
<item>
<attribute name="label" translatable="yes">_Preferences</attribute>
<attribute name="action">app.preferences</attribute>
</item>
</section>
<section>
<attribute name="id">help-section</attribute>
<item>
<attribute name="label" translatable="yes">_Keyboard Shortcuts</attribute>
<attribute name="action">app.shortcuts</attribute>
</item>
<item>
<attribute name="label" translatable="yes">_Help</attribute>
<attribute name="action">app.help</attribute>
</item>
<item>
<attribute name="label" translatable="yes">_About</attribute>
<attribute name="action">app.about</attribute>
</item>
<item>
<attribute name="label" translatable="yes">_Quit</attribute>
<attribute name="action">app.quit</attribute>
</item>
</section>
</menu>
<menu id="hamburger-menu">
<section>
<attribute name="id">juntion-section</attribute>
......@@ -56,6 +21,13 @@
<attribute name="verb-icon">view-fullscreen-symbolic</attribute>
</item>
</section>
<section>
<attribute name="id">new-window-section</attribute>
<item>
<attribute name="label" translatable="yes">_New Window</attribute>
<attribute name="action">app.new-window</attribute>
</item>
</section>
<section>
<attribute name="id">file-section</attribute>
</section>
......@@ -135,14 +107,22 @@
</submenu>
</section>
<section>
<attribute name="id">close-section</attribute>
<attribute name="id">app-section</attribute>
<item>
<attribute name="label" translatable="yes">_Close All</attribute>
<attribute name="action">win.close-all</attribute>
<attribute name="label" translatable="yes">_Preferences</attribute>
<attribute name="action">app.preferences</attribute>
</item>
<item>
<attribute name="label" translatable="yes">_Keyboard Shortcuts</attribute>
<attribute name="action">app.shortcuts</attribute>
</item>
<item>
<attribute name="label" translatable="yes">_Close</attribute>
<attribute name="action">win.close</attribute>
<attribute name="label" translatable="yes">_Help</attribute>
<attribute name="action">app.help</attribute>
</item>
<item>
<attribute name="label" translatable="yes">_About Text Editor</attribute>
<attribute name="action">app.about</attribute>
</item>
</section>
</menu>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment