g" parent="GtkDialog">
    <property name="width_request">400</property>
    <property name="height_request">500</property>
    <property name="can_focus">False</property>
    <property name="modal">True</property>
    <property name="destroy_with_parent">True</property>
    <property name="type_hint">dialog</property>
    <child internal-child="vbox">
      <object class="GtkBox" id="dialog-vbox">
        <property name="can_focus">False</property>
        <property name="orientation">vertical</property>
        <child internal-child="action_area">
          <object class="GtkButtonBox">
            <property name="can_focus">False</property>
          </object>
          <packing>
            <property name="expand">False</property>
            <property name="fill">False</property>
            <property name="position">0</property>
          </packing>
        </child>
        <child>
          <object class="GtkStack" id="_add_playlist_stack">
            <property name="visible">True</property>
            <property name="can_focus">False</property>
            <property name="hexpand">True</property>
            <property name="vexpand">True</property>
            <property name="transition_duration">250</property>
            <child>
              <object class="GtkBox" id="_empty_box">
                <property name="visible">False</property>
                <property name="can_focus">False</property>
                <property name="orientation">vertical</property>
                <child>
                  <object class="GtkBox">
                    <property name="visible">True</property>
                    <property name="can_focus">False</property>
                    <property name="orientation">vertical</property>
                    <property name="valign">end</property>
                    <child>
                      <object class="GtkImage" id="image">
                        <property name="visible">True</property>
                        <property name="can_focus">False</property>
                        <property name="valign">center</property>
                        <property name="pixel_size">100</property>
                        <property name="icon_name">emblem-music-symbolic</property>
                        <property name="icon_size">0</property>
                        <property name="margin_bottom">16</property>
                        <style>
                          <class name="grey-image"/>
                        </style>
                      </object>
                      <packing>
                        <property name="expand">True</property>
                        <property name="fill">True</property>
                        <property name="padding">18</property>
                        <property name="position">0</property>
                      </packing>
                    </child>
                    <child>
                      <object class="GtkLabel" id="label">
                        <property name="visible">True</property>
                        <property name="can_focus">False</property>
                        <property name="label" translatable="yes">Enter a name for your first playlist</property>
                      </object>
                      <packing>
                        <property name="expand">True</property>
                        <property name="fill">True</property>
                        <property name="position">1</property>
                      </packing>
                    </child>
                    <child>
                      <object class="GtkEntry" id="_first_playlist_entry">
                        <property name="width_request">300</property>
                        <property name="height_request">10</property>
                        <property name="visible">True</property>
                        <property name="can_focus">True</property>
                        <property name="halign">center</property>
                        <property name="margin_bottom">16</property>
                        <signal name="activate" handler="_on_editing_done" swapped="no"/>
                        <signal name="changed" handler="_on_add_playlist_entry_changed" swapped="no"/>
                        <signal name="focus-in-event" handler="_on_add_playlist_entry_focused" swapped="no"/>
                      </object>
                      <packing>
                        <property name="expand">False</property>
                        <property name="fill">True</property>
                        <property name="padding">18</property>
                        <property name="position">2</property>
                      </packing>
                    </child>
                    <child>
                      <object class="GtkButton" id="_first_playlist_button">
                        <property name="label" translatable="yes">C_reate</property>
                        <property name="use_underline">True</property>
                        <property name="width_request">120</property>
                        <property name="height_request">25</property>
                        <property name="visible">True</property>
                        <property name="sensitive">False</property>
                        <property name="can_focus">True</property>
                        <property name="receives_default">True</property>
                        <property name="halign">center</property>
                        <property name="valign">center</property>
                        <property name="margin_top">10</property>
                        <property name="margin_bottom">20</property>
                        <signal name="clicked" handler="_on_editing_done" swapped="no"/>
                      </object>
                      <packing>
                        <property name="expand">False</property>
                        <property name="fill">True</property>
                        <property name="position">3</property>
                      </packing>
                    </child>
                  </object>
                  <packing>
                    <property name="expand">True</property>
                    <property name="fill">True</property>
                    <property name="position">0</property>
                    <property name="padding">18</property>
                  </packing>
                </child>
                <child>
                  <object class="GtkButtonBox">
                    <property name="can_focus">False</property>
                  </object>
                  <packing>
                    <property name="expand">False</property>
                    <property name="fill">False</property>
                    <property name="position">1</property>
                  </packing>
                </child>
              </object>
            </child>
            <child>
              <object class="GtkBox" id="_normal_box">
                <property name="visible">False</property>
                <property name="can_focus">False</property>
                <property name="orientation">vertical</property>
                <child>
                  <object class="GtkBox">
                    <property name="visible">True</property>
                    <property name="can_focus">False</property>
                    <property name="orientation">vertical</property>
                    <child>
                      <object class="GtkSeparator">
                        <property name="visible">True</property>
                        <property name="can_focus">False</property>
                      </object>
                      <packing>
                        <property name="expand">False</property>
                        <property name="fill">True</property>
                        <property name="position">0</property>
                      </packing>
                    </child>
                    <child>
                      <object class="GtkBox" id="new-playlist-hbox">
                        <property name="visible">True</property>
                        <property name="can_focus">False</property>
                        <property name="border_width">6</property>
                        <child>
                          <object class="GtkEntry" id="_new_playlist_entry">
                            <property name="visible">True</property>
                            <property name="can_focus">True</property>
                            <property name="hexpand">True</property>
                            <property name="placeholder_text" translatable="yes">New Playlist…</property>
                            <signal name="activate" handler="_on_editing_done" swapped="no"/>
                            <signal name="changed" handler="_on_add_playlist_entry_changed" swapped="no"/>
                            <signal name="focus-in-event" handler="_on_add_playlist_entry_focused" swapped="no"/>
                            <style>
                              <class name="linked"/>
                            </style>
                          </object>
                          <packing>
                            <property name="expand">False</property>
                            <property name="fill">True</property>
                            <property name="position">0</property>
                          </packing>
                        </child>
                        <child>
                          <object class="GtkButton" id="_new_playlist_button">
                            <property name="label" translatable="yes">Add</property>
                            <property name="visible">True</property>
                            <property name="sensitive">False</property>
                            <property name="can_focus">True</property>
                            <property name="receives_default">False</property>
                            <signal name="clicked" handler="_on_editing_done" swapped="no"/>
                            <style>
                              <class name="suggested-action"/>
                              <class name="linked"/>
                            </style>
                          </object>
                          <packing>
                            <property name="expand">False</property>
                            <property name="fill">True</property>
                            <property name="position">1</property>
                          </packing>
                        </child>
                        <style>
                          <class name="linked"/>
                        </style>
                      </object>
                      <packing>
                        <property name="expand">False</property>
                        <property name="fill">True</property>
                        <property name="position">1</property>
                      </packing>
                    </child>
                  </object>
                  <packing>
                    <property name="expand">False</property>
                    <property name="fill">True</property>
                    <property name="pack_type">end</property>
                    <property name="position">0</property>
                  </packing>
                </child>
                <child>
                  <object class="GtkScrolledWindow" id="scrolledwindow">
                    <property name="visible">True</property>
                    <property name="can_focus">True</property>
                    <property name="vexpand">True</property>
                    <child>
                      <object class="GtkTreeView" id="_view">
                        <property name="visible">True</property>
                        <property name="can_focus">True</property>
                        <property name="model">_model</property>
                        <property name="headers_visible">False</property>
                        <property name="search_column">0</property>
                        <property name="activate_on_single_click">True</property>
                        <signal name="row-activated" handler="_on_item_activated" swapped="no"/>
                        <child internal-child="selection">
                          <object class="GtkTreeSelection" id="_selection">
                            <signal name="changed" handler="_on_selection_changed" swapped="no"/>
                          </object>
                        </child>
                        <style>
                          <class name="list-row"/>
                          <class name="playlists-list"/>
                        </style>
                      </object>
                    </child>
                  </object>
                  <packing>
                    <property name="expand">False</property>
                    <property name="fill">True</property>
                    <property name="position">1</property>
                  </packing>
                </child>
                <child>
                  <object class="GtkButtonBox">
                    <property name="can_focus">False</property>
                  </object>
                  <packing>
                    <property name="expand">False</property>
                    <property name="fill">False</property>
                    <property name="position">2</property>
                  </packing>
                </child>
              </object>
              <packing>
                <property name="position">1</property>
              </packing>
            </child>
          </object>
          <packing>
            <property name="expand">False</property>
            <property name="fill">True</property>
            <property name="position">1</property>
          </packing>
        </child>
      </object>
    </child>
  </template>
  <object class="GtkHeaderBar" id="_title_bar">
    <property name="visible">True</property>
    <property name="can_focus">False</property>
    <property name="title" translatable="yes">Add to Playlist</property>
    <child>
      <object class="GtkButton" id="_cancel_button">
        <property name="label" translatable="yes">_Cancel</property>
        <property name="use_underline">True</property>
        <property name="visible">True</property>
        <property name="can_focus">False</property>
        <property name="receives_default">False</property>
        <signal name="clicked" handler="_on_cancel_button_clicked" swapped="no"/>
        <style>
          <class name="text-button"/>
        </style>
      </object>
    </child>
    <child>
      <object class="GtkButton" id="_select_button">
        <property name="label" translatable="yes">_Add</property>
        <property name="sensitive">False</property>
        <property name="use_underline">True</property>
        <property name="visible">True</property>
        <property name="can_focus">False</property>
        <property name="receives_default">False</property>
        <signal name="clicked" handler="_on_selection" swapped="no"/>
        <style>
          <class name="suggested-action"/>
          <class name="text-button"/>
        </style>
      </object>
      <packing>
        <property name="pack_type">end</property>
        <property name="position">1</property>
      </packing>
    </child>
  </object>
  <object class="GtkListStore" id="_model">
    <columns>
      <!-- column-name playlist-name -->
      <column type="gchararray"/>
      <!-- column-name item -->
      <column type="GObject"/>
    </columns>
  </object>
</interface>
