FileChooser does not automatically scroll to the required position of selected item after using "Visit File" right-click action
To reproduce:
- Put some files in your /tmp folder (or some folder that has a bunch of folders/files already, so that it needs scrolling to get to it; probably need to have the "Sort folders before files" option turned on for this to be easier to reproduce)
- Open that file, or save it from some app that updates the recently used files metadata.
- Open the FileChooser, and in the "Recent" view, right-click that file, click "Visit File" to reveal it within the context of its containing folder
Result: the containing folder is shown, but not scrolled to the (already selected) file.
Video demonstrating the issue:
gtk4-filechooser-doesnt-autoscroll-to-revealed-file
Additional info:
- This happens both in ListView mode and GridView mode in the FileChooser.
- This used to work in GTK3's FileChooser and older, and doesn't seem to work in GTK 4.10.3's FileChooser, tested on Fedora 38 with the Wayland GNOME session.