diff --git a/src/ui/play_queue.vala b/src/ui/play_queue.vala index 9801637..aea16eb 100644 --- a/src/ui/play_queue.vala +++ b/src/ui/play_queue.vala @@ -1,7 +1,7 @@ // song widget+drag behavior taken from gnome music [GtkTemplate (ui = "/eu/callcc/audrey/ui/play_queue_song.ui")] -class Ui.PlayQueueSong : Gtk.ListBoxRow { +class Ui.PlayQueueSong : Gtk.Box { public bool draggable { get; set; default = false; } public bool show_position { get; set; default = false; } public bool show_artist { get; set; default = false; } @@ -75,6 +75,7 @@ class Ui.PlayQueueSong : Gtk.ListBoxRow { private Gtk.ListBox? drag_widget; [GtkCallback] private void on_drag_begin (Gtk.DragSource source, Gdk.Drag drag) { + /* FIXME this.drag_widget = new Gtk.ListBox (); this.drag_widget.set_size_request (this.get_width (), this.get_height ()); @@ -92,7 +93,7 @@ class Ui.PlayQueueSong : Gtk.ListBoxRow { var drag_icon = Gtk.DragIcon.get_for_drag (drag); drag_icon.set("child", this.drag_widget); - drag.set_hotspot ((int) this.drag_x, (int) this.drag_y); + drag.set_hotspot ((int) this.drag_x, (int) this.drag_y); */ } [GtkCallback] private bool on_drop (Value value, double x, double y) { diff --git a/src/ui/play_queue_song.blp b/src/ui/play_queue_song.blp index 72aeba4..3a22ac6 100644 --- a/src/ui/play_queue_song.blp +++ b/src/ui/play_queue_song.blp @@ -1,9 +1,6 @@ using Gtk 4.0; -template $UiPlayQueueSong: ListBoxRow { - selectable: false; - activatable: false; // prevents double background change on focus - +template $UiPlayQueueSong: Box { Box { focusable: false; spacing: 6;