<?xml version="1.0"?>
<interface>
  <!-- interface-requires gtk+ 3.0 -->
  <menu id="appmenu">
    <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">_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="gear_menu_withappmenu">
    <section>
      <attribute name="id">file-section</attribute>
    </section>
    <section>
      <attribute name="id">file-section-1</attribute>
      <item>
        <attribute name="label" translatable="yes">_Reload</attribute>
        <attribute name="action">win.revert</attribute>
      </item>
      <item>
        <attribute name="label" translatable="yes">_Save As…</attribute>
        <attribute name="action">win.save-as</attribute>
      </item>
      <item>
        <attribute name="label" translatable="yes">Save _All</attribute>
        <attribute name="action">win.save-all</attribute>
      </item>
    </section>
    <section>
      <attribute name="id">print-section</attribute>
      <item>
        <attribute name="label" translatable="yes">_Print…</attribute>
        <attribute name="action">win.print</attribute>
      </item>
    </section>
    <section>
      <attribute name="id">search-section</attribute>
      <item>
        <attribute name="label" translatable="yes">_Find…</attribute>
        <attribute name="action">win.find</attribute>
      </item>
      <item>
        <attribute name="label" translatable="yes">_Find and Replace…</attribute>
        <attribute name="action">win.replace</attribute>
      </item>
      <item>
        <attribute name="label" translatable="yes">_Clear Highlight</attribute>
        <attribute name="action">win.clear-highlight</attribute>
      </item>
      <item>
        <attribute name="label" translatable="yes">_Go to Line…</attribute>
        <attribute name="action">win.goto-line</attribute>
      </item>
    </section>
    <section>
      <attribute name="id">edit-section</attribute>
    </section>
    <section>
      <attribute name="id">edit-section-1</attribute>
    </section>
    <section>
      <attribute name="id">view-section</attribute>
      <item>
        <attribute name="label" translatable="yes">Side _Panel</attribute>
        <attribute name="action">win.side-panel</attribute>
      </item>
      <item>
        <attribute name="label" translatable="yes">_Bottom Panel</attribute>
        <attribute name="action">win.bottom-panel</attribute>
        <attribute name="hidden-when">action-disabled</attribute>
      </item>
      <item>
        <attribute name="label" translatable="yes">_Fullscreen</attribute>
        <attribute name="action">win.fullscreen</attribute>
      </item>
    </section>
    <section>
      <attribute name="id">view-section-1</attribute>
    </section>
    <section>
      <attribute name="id">view-section-2</attribute>
      <item>
        <attribute name="label" translatable="yes">_Highlight Mode…</attribute>
        <attribute name="action">win.highlight-mode</attribute>
      </item>
    </section>
    <section>
      <attribute name="id">spell-section</attribute>
    </section>
    <section>
      <attribute name="id">tools-section</attribute>
    </section>
    <section>
      <attribute name="id">tools-section-1</attribute>
    </section>
    <section>
      <attribute name="id">close-section</attribute>
      <item>
        <attribute name="label" translatable="yes">_Close All</attribute>
        <attribute name="action">win.close-all</attribute>
      </item>
      <item>
        <attribute name="label" translatable="yes">_Close</attribute>
        <attribute name="action">win.close</attribute>
      </item>
    </section>
  </menu>
  <menu id="gear_menu_noappmenu">
    <section>
      <attribute name="id">file-section</attribute>
    </section>
    <section>
      <attribute name="id">file-section-1</attribute>
      <item>
        <attribute name="label" translatable="yes">_Reload</attribute>
        <attribute name="action">win.revert</attribute>
      </item>
      <item>
        <attribute name="label" translatable="yes">_Save As…</attribute>
        <attribute name="action">win.save-as</attribute>
      </item>
      <item>
        <attribute name="label" translatable="yes">Save _All</attribute>
        <attribute name="action">win.save-all</attribute>
      </item>
    </section>
    <section>
      <attribute name="id">print-section</attribute>
      <item>
        <attribute name="label" translatable="yes">_Print…</attribute>
        <attribute name="action">win.print</attribute>
      </item>
    </section>
    <section>
      <attribute name="id">search-section</attribute>
      <item>
        <attribute name="label" translatable="yes">_Find…</attribute>
        <attribute name="action">win.find</attribute>
      </item>
      <item>
        <attribute name="label" translatable="yes">_Find and Replace…</attribute>
        <attribute name="action">win.replace</attribute>
      </item>
      <item>
        <attribute name="label" translatable="yes">_Clear Highlight</attribute>
        <attribute name="action">win.clear-highlight</attribute>
      </item>
      <item>
        <attribute name="label" translatable="yes">_Go to Line…</attribute>
        <attribute name="action">win.goto-line</attribute>
      </item>
    </section>
    <section>
      <attribute name="id">edit-section</attribute>
    </section>
    <section>
      <attribute name="id">edit-section-1</attribute>
    </section>
    <section>
      <attribute name="id">view-section</attribute>
      <item>
        <attribute name="label" translatable="yes">Side _Panel</attribute>
        <attribute name="action">win.side-panel</attribute>
      </item>
      <item>
        <attribute name="label" translatable="yes">_Bottom Panel</attribute>
        <attribute name="action">win.bottom-panel</attribute>
        <attribute name="hidden-when">action-disabled</attribute>
      </item>
      <item>
        <attribute name="label" translatable="yes">_Fullscreen</attribute>
        <attribute name="action">win.fullscreen</attribute>
      </item>
    </section>
    <section>
      <attribute name="id">view-section-1</attribute>
    </section>
    <section>
      <attribute name="id">view-section-2</attribute>
      <item>
        <attribute name="label" translatable="yes">_Highlight Mode…</attribute>
        <attribute name="action">win.highlight-mode</attribute>
      </item>
    </section>
    <section>
      <attribute name="id">spell-section</attribute>
    </section>
    <section>
      <attribute name="id">tools-section</attribute>
    </section>
    <section>
      <attribute name="id">tools-section-1</attribute>
    </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">_Help</attribute>
        <attribute name="action">app.help</attribute>
      </item>
      <item>
        <attribute name="label" translatable="yes">_About</attribute>
        <attribute name="action">app.about</attribute>
      </item>
    </section>
    <section>
      <attribute name="id">close-section</attribute>
      <item>
        <attribute name="label" translatable="yes">_Close All</attribute>
        <attribute name="action">win.close-all</attribute>
      </item>
      <item>
        <attribute name="label" translatable="yes">_Close</attribute>
        <attribute name="action">win.close</attribute>
      </item>
      <item>
        <attribute name="label" translatable="yes">_Quit</attribute>
        <attribute name="action">app.quit</attribute>
      </item>
    </section>
  </menu>
  <menu id="notebook_menu">
    <section>
      <item>
        <attribute name="label" translatable="yes">Move _Left</attribute>
        <attribute name="action">move-left</attribute>
      </item>
      <item>
        <attribute name="label" translatable="yes">Move _Right</attribute>
        <attribute name="action">move-right</attribute>
      </item>
    </section>
    <section>
      <item>
        <attribute name="label" translatable="yes">Move to New _Window</attribute>
        <attribute name="action">move-to-new-window</attribute>
      </item>
      <item>
        <attribute name="label" translatable="yes">Move to New Tab _Group</attribute>
        <attribute name="action">move-to-new-tab-group</attribute>
      </item>
    </section>
    <section>
      <item>
        <attribute name="label" translatable="yes">_Close</attribute>
        <attribute name="action">close</attribute>
      </item>
    </section>
  </menu>
  <menu id="tab_width_menu">
    <section>
      <item>
        <attribute name="label" translatable="yes">Automatic Indentation</attribute>
        <attribute name="action">win.auto-indent</attribute>
      </item>
    </section>
    <section>
      <item>
        <attribute name="label">2</attribute>
        <attribute name="action">win.tab-width</attribute>
        <attribute name="target" type="u">2</attribute>
      </item>
      <item>
        <attribute name="label">4</attribute>
        <attribute name="action">win.tab-width</attribute>
        <attribute name="target" type="u">4</attribute>
      </item>
      <item>
        <attribute name="label">8</attribute>
        <attribute name="action">win.tab-width</attribute>
        <attribute name="target" type="u">8</attribute>
      </item>
    </section>
    <section>
      <item>
        <attribute name="label" translatable="yes">Use Spaces</attribute>
        <attribute name="action">win.use-spaces</attribute>
      </item>
    </section>
  </menu>
</interface>
