GTK4 ListView: Expose a way to get list item from a widget-relative X/Y position
I'm trying to write a context menu that will appear on right-click of an item in a ListView
. Adding a GestureClick
controller to the view and connecting to the pressed
signal will give me the X/Y coordinates of a click, but there's currently no way to determine the item that was clicked from the public API of ListView
.
Edited by Andy Russell