GtkFileChooser: multi-file selection finished with ENTER key only returns one file
When I confirm a multi-file selection in YAD 0.4.0 (yad --file-selection --multiple) by hitting the ENTER key instead of clicking on OK, YAD only returns the most recently selected file instead of all selected ones. This seems to be caused by gtk_file_chooser_get_filenames() returning an one-element GSList in this case, while it returns a multi-element list when clicking OK.
Steps to reproduce
touch a b
yad --file-selection --multiple
# select both a and b (by using Ctrl+click)
# press ENTER (instead of clicking OK)
(same with current git-HEAD yad v8.0-1-g06d526a from https://github.com/v1cont/yad, only with yad --file --multiple
)
Current behavior
/tmp/test/b
Expected outcome
/tmp/test/a|/tmp/test/b
Version information
- libgtk-3-dev 3.24.20-0ubuntu1
- Ubuntu Linux 20.04
Additional information
YAD bug report: https://github.com/v1cont/yad/issues/124