<?xml version='1.0' encoding='UTF-8'?>
<!-- Created with Cambalache 1.0 -->
<interface>
  <!-- interface-name ex_menu_button.ui -->
  <requires lib="gtk" version="4.12"/>
  <template class="ExMenuButton" parent="GtkWidget">
    <property name="layout-manager">
      <object class="GtkBinLayout"/>
    </property>
    <child>
      <object class="GtkToggleButton" id="toggle">
        <property name="child">
          <object class="GtkBox">
            <property name="spacing">6</property>
            <child>
              <object class="GtkLabel" id="button_label">
                <property name="label">Custom Menu</property>
                <style>
                  <class name="title"/>
                </style>
              </object>
            </child>
            <child>
              <object class="GtkImage">
                <property name="icon-name">pan-down-symbolic</property>
              </object>
            </child>
          </object>
        </property>
        <signal name="toggled" handler="toggle_toggled" swapped="True"/>
      </object>
    </child>
    <child>
      <object class="GtkPopover" id="popover">
        <property name="child">
          <object class="GtkBox" id="pop_content">
            <property name="orientation">vertical</property>
            <child>
              <object class="GtkButton">
                <property name="label" translatable="yes" context="extented menu button">Clear</property>
                <property name="tooltip-text">Clear filter selection</property>
                <signal name="clicked" handler="clear_filter_selection" swapped="True"/>
              </object>
            </child>
          </object>
        </property>
        <signal name="closed" handler="popover_closed" swapped="True"/>
      </object>
    </child>
  </template>
</interface>
