For instance looking at Image-menu.ui
, in <Image>/File
there are Open/Save/Export sections:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE interface SYSTEM "gtkuimanager.dtd">
<!-- This file is automatically generated. Do not edit! -->
<interface>
<menu id="/image-menubar">
<!-- File menu -->
<submenu>
<attribute name="label" translatable="yes" context="file-action">_File</attribute>
<section>
<attribute name="section-name" translatable="no">Open</attribute>
<item><attribute name="action">app.image-new</attribute></item>
<submenu>
<attribute name="label" translatable="yes" context="file-action">Crea_te</attribute>
<item><attribute name="action">app.edit-paste-as-new-image</attribute></item>
</submenu>
<item><attribute name="action">app.file-open</attribute></item>
<item><attribute name="action">app.file-open-as-layers</attribute></item>
<item><attribute name="action">app.file-open-location</attribute></item>
<submenu>
<attribute name="label" translatable="yes" context="file-action">Open _Recent</attribute>
<section>
<attribute name="section-name" translatable="no">Files</attribute>
</section>
<item><attribute name="action">app.dialogs-document-history</attribute></item>
</submenu>
<section>
<attribute name="section-name" translatable="no">Save</attribute>
<item><attribute name="action">app.file-save</attribute></item>
<item><attribute name="action">app.file-save-as</attribute></item>
<item><attribute name="action">app.file-save-a-copy</attribute></item>
<item><attribute name="action">app.file-revert</attribute></item>
</section>
<section>
<attribute name="section-name" translatable="no">Export</attribute>
<item><attribute name="action">app.file-overwrite</attribute></item>
<item><attribute name="action">app.file-export</attribute></item>
<item><attribute name="action">app.file-export-as</attribute></item>
<item><attribute name="action">app.file-create-template</attribute></item>
</section>
Is there some syntax in the menu path name to get there? <Image >/<File>/<Export>
doesn’t seem to work (in V2 I could just use <Image>/File/Export
).