1<?xml version="1.0" encoding="UTF-8"?> 2<!-- Generated with glade 3.20.0 --> 3<interface> 4 <requires lib="gtk+" version="3.10"/> 5 <template class="PlaylistDialog" parent="GtkDialog"> 6 <property name="width_request">400</property> 7 <property name="height_request">500</property> 8 <property name="can_focus">False</property> 9 <property name="modal">True</property> 10 <property name="destroy_with_parent">True</property> 11 <property name="type_hint">dialog</property> 12 <child internal-child="vbox"> 13 <object class="GtkBox" id="dialog-vbox"> 14 <property name="can_focus">False</property> 15 <property name="orientation">vertical</property> 16 <child internal-child="action_area"> 17 <object class="GtkButtonBox"> 18 <property name="can_focus">False</property> 19 </object> 20 <packing> 21 <property name="position">0</property> 22 </packing> 23 </child> 24 <child> 25 <object class="GtkStack" id="_add_playlist_stack"> 26 <property name="visible">True</property> 27 <property name="can_focus">False</property> 28 <property name="hexpand">True</property> 29 <property name="vexpand">True</property> 30 <property name="transition_duration">250</property> 31 <child> 32 <object class="GtkBox" id="_empty_box"> 33 <property name="visible">False</property> 34 <property name="can_focus">False</property> 35 <property name="orientation">vertical</property> 36 <child> 37 <object class="GtkBox"> 38 <property name="visible">True</property> 39 <property name="can_focus">False</property> 40 <property name="orientation">vertical</property> 41 <property name="valign">fill</property> 42 <property name="vexpand">True</property> 43 <property name="margin-bottom">18</property> 44 <property name="margin-end">18</property> 45 <property name="margin-start">18</property> 46 <property name="margin-top">18</property> 47 <child> 48 <object class="GtkImage" id="image"> 49 <property name="visible">True</property> 50 <property name="can_focus">False</property> 51 <property name="valign">center</property> 52 <property name="pixel_size">100</property> 53 <property name="icon_name">emblem-music-symbolic</property> 54 <property name="icon_size">0</property> 55 <property name="margin-bottom">16</property> 56 <property name="vexpand">True</property> 57 <style> 58 <class name="grey-image"/> 59 </style> 60 </object> 61 </child> 62 <child> 63 <object class="GtkLabel" id="label"> 64 <property name="visible">True</property> 65 <property name="can_focus">False</property> 66 <property name="label" translatable="yes">Enter a name for your first playlist</property> 67 <property name="valign">end</property> 68 </object> 69 </child> 70 <child> 71 <object class="GtkEntry" id="_first_playlist_entry"> 72 <property name="width_request">300</property> 73 <property name="height_request">10</property> 74 <property name="visible">True</property> 75 <property name="can_focus">True</property> 76 <property name="halign">center</property> 77 <property name="margin-bottom">16</property> 78 <property name="margin-end">18</property> 79 <property name="margin-start">18</property> 80 <property name="margin-top">18</property> 81 <signal name="activate" handler="_on_editing_done" swapped="no"/> 82 <signal name="changed" handler="_on_add_playlist_entry_changed" swapped="no"/> 83 <signal name="focus-in-event" handler="_on_add_playlist_entry_focused" swapped="no"/> 84 </object> 85 </child> 86 <child> 87 <object class="GtkButton" id="_first_playlist_button"> 88 <property name="label" translatable="yes">C_reate</property> 89 <property name="use_underline">True</property> 90 <property name="width_request">120</property> 91 <property name="height_request">25</property> 92 <property name="visible">True</property> 93 <property name="sensitive">False</property> 94 <property name="can_focus">True</property> 95 <property name="receives_default">True</property> 96 <property name="halign">center</property> 97 <property name="valign">center</property> 98 <property name="margin-bottom">20</property> 99 <property name="margin-end">18</property> 100 <property name="margin-start">18</property> 101 <property name="margin-top">10</property> 102 <signal name="clicked" handler="_on_editing_done" swapped="no"/> 103 </object> 104 </child> 105 </object> 106 </child> 107 <child> 108 <object class="GtkButtonBox"> 109 <property name="can_focus">False</property> 110 </object> 111 </child> 112 </object> 113 </child> 114 <child> 115 <object class="GtkBox" id="_normal_box"> 116 <property name="visible">False</property> 117 <property name="can_focus">False</property> 118 <property name="orientation">vertical</property> 119 <child> 120 <object class="GtkScrolledWindow" id="scrolledwindow"> 121 <property name="visible">True</property> 122 <property name="can_focus">True</property> 123 <property name="vexpand">True</property> 124 <child> 125 <object class="GtkListBox" id="_listbox"> 126 <property name="visible">True</property> 127 <property name="can_focus">True</property> 128 <property name="selection_mode">single</property> 129 <property name="valign">start</property> 130 <signal name="selected-rows-changed" handler="_on_selected_rows_changed" swapped="no"/> 131 </object> 132 </child> 133 </object> 134 </child> 135 <child> 136 <object class="GtkBox"> 137 <property name="visible">True</property> 138 <property name="can_focus">False</property> 139 <property name="orientation">vertical</property> 140 <child> 141 <object class="GtkSeparator"> 142 <property name="visible">True</property> 143 <property name="can_focus">False</property> 144 </object> 145 </child> 146 <child> 147 <object class="GtkBox" id="new-playlist-hbox"> 148 <property name="visible">True</property> 149 <property name="can_focus">False</property> 150 <property name="border_width">6</property> 151 <child> 152 <object class="GtkEntry" id="_new_playlist_entry"> 153 <property name="visible">True</property> 154 <property name="can_focus">True</property> 155 <property name="hexpand">True</property> 156 <property name="placeholder_text" translatable="yes">New Playlist…</property> 157 <signal name="activate" handler="_on_editing_done" swapped="no"/> 158 <signal name="changed" handler="_on_add_playlist_entry_changed" swapped="no"/> 159 <signal name="focus-in-event" handler="_on_add_playlist_entry_focused" swapped="no"/> 160 <style> 161 <class name="linked"/> 162 </style> 163 </object> 164 </child> 165 <child> 166 <object class="GtkButton" id="_new_playlist_button"> 167 <property name="label" translatable="yes">Add</property> 168 <property name="visible">True</property> 169 <property name="sensitive">False</property> 170 <property name="can_focus">True</property> 171 <property name="receives_default">False</property> 172 <signal name="clicked" handler="_on_editing_done" swapped="no"/> 173 <style> 174 <class name="suggested-action"/> 175 <class name="linked"/> 176 </style> 177 </object> 178 </child> 179 <style> 180 <class name="linked"/> 181 </style> 182 </object> 183 </child> 184 </object> 185 <packing> 186 <property name="pack_type">end</property> 187 <property name="position">0</property> 188 </packing> 189 </child> 190 <child> 191 <object class="GtkButtonBox"> 192 <property name="can_focus">False</property> 193 </object> 194 <packing> 195 <property name="position">2</property> 196 </packing> 197 </child> 198 </object> 199 </child> 200 </object> 201 </child> 202 </object> 203 </child> 204 </template> 205 <object class="GtkHeaderBar" id="_title_bar"> 206 <property name="visible">True</property> 207 <property name="can_focus">False</property> 208 <property name="title" translatable="yes">Add to Playlist</property> 209 <child> 210 <object class="GtkButton" id="_cancel_button"> 211 <property name="label" translatable="yes">_Cancel</property> 212 <property name="use_underline">True</property> 213 <property name="visible">True</property> 214 <property name="can_focus">False</property> 215 <property name="receives_default">False</property> 216 <signal name="clicked" handler="_on_cancel_button_clicked" swapped="no"/> 217 <style> 218 <class name="text-button"/> 219 </style> 220 </object> 221 </child> 222 <child> 223 <object class="GtkButton" id="_select_button"> 224 <property name="label" translatable="yes">_Add</property> 225 <property name="sensitive">False</property> 226 <property name="use_underline">True</property> 227 <property name="visible">True</property> 228 <property name="can_focus">False</property> 229 <property name="receives_default">False</property> 230 <signal name="clicked" handler="_on_selection" swapped="no"/> 231 <style> 232 <class name="suggested-action"/> 233 <class name="text-button"/> 234 </style> 235 </object> 236 <packing> 237 <property name="pack_type">end</property> 238 </packing> 239 </child> 240 </object> 241</interface> 242