demos: Add edit menu to gtk-demo-application

Edit shortcuts work now when opening a file.
This commit is contained in:
Arjan Molenaar 2024-12-23 13:22:12 +01:00
parent d0a1a311fe
commit 52ea24e4e6

View File

@ -32,6 +32,41 @@
</item> </item>
</section> </section>
</submenu> </submenu>
<submenu>
<attribute name="label" translatable="yes">_Edit</attribute>
<section>
<item>
<attribute name="label" translatable="yes">Undo</attribute>
<attribute name="action">text.undo</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Redo</attribute>
<attribute name="action">text.redo</attribute>
</item>
</section>
<section>
<item>
<attribute name="label" translatable="yes">Cut</attribute>
<attribute name="action">clipboard.cut</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Copy</attribute>
<attribute name="action">clipboard.copy</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Paste</attribute>
<attribute name="action">clipboard.paste</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Delete</attribute>
<attribute name="action">selection.delete</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Select All</attribute>
<attribute name="action">selection.select-all</attribute>
</item>
</section>
</submenu>
<submenu> <submenu>
<attribute name="label" translatable="yes">_Preferences</attribute> <attribute name="label" translatable="yes">_Preferences</attribute>
<section> <section>