<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <!-- interface-requires gtk+ 3.9 -->
  <template class="BoxesSelectionToolbar" parent="GtkHeaderBar">
    <property name="visible">True</property>
    <property name="show-close-button">False</property>
    <style>
      <class name="selection-mode"/>
      <class name="titlebar"/>
    </style>

    <child type="title">
      <object class="GtkMenuButton" id="menu_button">
        <property name="visible">True</property>
        <property name="valign">center</property>
        <property name="menu-model">selection-menu</property>

        <child>
          <object class="GtkGrid" id="selection_menu_button_grid">
            <property name="visible">True</property>
            <property name="column-spacing">6</property>

            <child>
              <object class="GtkLabel" id="menu_button_label">
                <property name="visible">True</property>
              </object>

              <packing>
                <property name="left-attach">0</property>
                <property name="top-attach">0</property>
                <property name="width">1</property>
                <property name="height">1</property>
              </packing>
            </child>

            <child>
              <object class="GtkArrow" id="selection_menu_button_arrow">
                <property name="visible">True</property>
                <property name="arrow-type">down</property>
                <property name="shadow-type">none</property>
              </object>

              <packing>
                <property name="left-attach">1</property>
                <property name="top-attach">0</property>
                <property name="width">1</property>
                <property name="height">1</property>
              </packing>
            </child>
          </object>
        </child>

        <style>
          <class name="selection-menu"/>
        </style>
      </object>
    </child>

    <child>
      <object class="GtkButton" id="cancel_btn">
        <property name="visible">True</property>
        <property name="valign">center</property>
        <property name="use-underline">True</property>
        <property name="label" translatable="yes">_Cancel</property>
        <signal name="clicked" handler="on_cancel_btn_clicked"/>
        <style>
          <class name="text-button"/>
        </style>
      </object>

      <packing>
        <property name="pack-type">end</property>
      </packing>
    </child>

    <child>
      <object class="GtkToggleButton" id="search_btn">
        <property name="visible">True</property>
        <property name="valign">center</property>
        <property name="use-underline">True</property>
        <style>
          <class name="image-button"/>
        </style>
        <child internal-child="accessible">
          <object class="AtkObject" id="a11y-button4">
            <property name="accessible-name" translatable="yes">Search</property>
          </object>
        </child>
        <child>
          <object class="GtkImage" id="search_image">
            <property name="visible">True</property>
            <property name="icon-name">edit-find-symbolic</property>
            <property name="icon-size">1</property>
          </object>
        </child>
      </object>

      <packing>
        <property name="pack-type">end</property>
      </packing>
    </child>
  </template>

  <menu id="selection-menu">
    <section>
      <item>
        <attribute name="action">app.select-all</attribute>
        <attribute name="label" translatable="yes">Select All</attribute>
        <attribute name="accel">&lt;Primary&gt;a</attribute>
      </item>
      <item>
        <attribute name="action">app.select-running</attribute>
        <attribute name="label" translatable="yes">Select Running</attribute>
      </item>
      <item>
        <attribute name="action">app.select-none</attribute>
        <attribute name="label" translatable="yes">Select None</attribute>
      </item>
    </section>
  </menu>
</interface>
