<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk+" version="3.16"/>
  <template class="GtdNewTaskRow" parent="GtkListBoxRow">
    <property name="width_request">100</property>
    <property name="visible">True</property>
    <property name="can_focus">True</property>
    <property name="activatable">True</property>
    <property name="selectable">False</property>
    <child>
      <object class="GtkBox">
        <property name="visible">True</property>
        <property name="can_focus">False</property>
        <property name="margin">6</property>
        <property name="margin_start">24</property>
        <property name="margin_end">24</property>
        <property name="spacing">12</property>
        <child>
          <object class="GtkImage" id="add_task_image">
            <property name="width_request">16</property>
            <property name="height_request">16</property>
            <property name="visible">True</property>
            <property name="can_focus">False</property>
            <property name="halign">center</property>
            <property name="valign">center</property>
            <property name="icon_name">list-add-symbolic</property>
          </object>
        </child>
        <child>
          <object class="GtkStack" id="stack">
            <property name="visible">True</property>
            <property name="can_focus">False</property>
            <property name="hexpand">True</property>
            <property name="transition_type">crossfade</property>
            <child>
              <object class="GtkLabel" id="label">
                <property name="visible">True</property>
                <property name="can_focus">False</property>
                <property name="label" translatable="yes">New task…</property>
                <property name="xalign">0</property>
                <style>
                  <class name="dim-label"/>
                </style>
              </object>
              <packing>
                <property name="name">label</property>
              </packing>
            </child>
            <child>
              <object class="GtkBox">
                <property name="visible">True</property>
                <property name="can_focus">False</property>
                <style>
                  <class name="linked" />
                </style>
                <child>
                  <object class="GtkEntry" id="entry">
                    <property name="visible">True</property>
                    <property name="can_focus">True</property>
                    <property name="hexpand">True</property>
                    <signal name="activate" handler="entry_activated_cb" object="GtdNewTaskRow" swapped="yes" />
                  </object>
                </child>
                <child>
                  <object class="GtkMenuButton" id="list_selector_button">
                    <property name="visible">True</property>
                    <property name="can_focus">True</property>
                    <property name="popover">tasklist_popover</property>
                    <child>
                      <object class="GtkBox">
                        <property name="visible">True</property>
                        <property name="can_focus">False</property>
                        <property name="spacing">6</property>
                        <child>
                          <object class="GtkImage" id="list_color_icon">
                            <property name="visible">True</property>
                            <property name="can_focus">False</property>
                          </object>
                        </child>
                        <child>
                          <object class="GtkLabel" id="list_name_label">
                            <property name="visible">True</property>
                            <property name="can_focus">False</property>
                            <property name="max_width_chars">20</property>
                            <property name="ellipsize">end</property>
                          </object>
                        </child>
                      </object>
                    </child>
                  </object>
                </child>
              </object>
              <packing>
                <property name="name">entry</property>
                <property name="position">1</property>
              </packing>
            </child>
          </object>
        </child>
      </object>
    </child>
  </template>
  <object class="GtkPopover" id="tasklist_popover">
    <property name="can_focus">False</property>
    <child>
      <object class="GtkListBox" id="tasklist_list">
        <property name="visible">True</property>
        <property name="can_focus">False</property>
        <property name="margin">12</property>
        <property name="selection_mode">none</property>
        <signal name="row-activated" handler="tasklist_selected_cb" object="GtdNewTaskRow" swapped="no" />
        <style>
          <class name="background" />
        </style>
      </object>
    </child>
  </object>
  <object class="GtkSizeGroup" id="sizegroup">
    <property name="mode">horizontal</property>
  </object>
</interface>
