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)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 5 Jun 2023 11:56:23 +0000 (07:56 -0400)
commite435d8b93c2cf7af47b74c3a04d27ebf9439ca73
treeaefb1cfb03b405a2f244a868194c6f1335ce4ce1
parent97ac0a45875d40518f0be62398982bb3e9a549fb
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