using Gtk 4.0; using Adw 1; template $UiPlayQueue: Adw.NavigationPage { title: _("Play queue"); Adw.ToolbarView { [top] Adw.HeaderBar { Button { icon-name: "edit-clear-all"; clicked => $on_clear (); sensitive: bind template.can_clear_all; } } ScrolledWindow { ListView view { single-click-activate: true; activate => $on_row_activated (); model: NoSelection { model: bind template.playbin as <$Playbin>.play_queue; }; factory: SignalListItemFactory { setup => $on_song_list_setup (); bind => $on_song_list_bind (); unbind => $on_song_list_unbind (); }; } } } }