I am working on a new app in Vala with GTK 4 and libadwaita-1. I need to enable reordering items in Gtk.ListBox with drag and drop and I am struggling with it. I didn’t find any tutorial for GTK 4 on the internet, only drag and drop demo in GTK 4 demos app. But there isn’t any example how to do that in Gtk.ListBox.
So what is the best way how to implement it?
Thank you in advance.
Edit: I looked to the source code of GNOME Control Center and I figured out how to handle dragging. But I am still struggling with handling the drop. It is still not working.