filelauncher: Use ShowItems to show in File Manager
authorCalvin Walton <calvin.walton@kepstin.ca>
Sat, 20 May 2023 23:25:43 +0000 (19:25 -0400)
committerCalvin Walton <calvin.walton@kepstin.ca>
Sat, 20 May 2023 23:40:09 +0000 (19:40 -0400)
commitbe897646b1db52763cd22c134f6c90319d27fc4f
tree51dad3c73ac9d14ff82ff3fd1ec21aff39be5fa6
parent3beaf0962c53c59e0fde660b55e58e1d5117fb7d
filelauncher: Use ShowItems to show in File Manager

The non-portal fallback method for launching a file manager to show the
file in its parent directory was incorrectly using the `ShowFolders`
method (open a folder) instead of `ShowItems` (open the parent directory
and show the file).

The `show_item` function (previously `show_folder`) had an unused
`callback` parameter; it has been removed and the type of the parameter
containing the GTask has been renamed and now uses the correct type
instead of gpointer to reduce the amount of casting required.

Fixes GNOME/gtk#5842
gtk/gtkfilelauncher.c