After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 347672 - File chooser dialog returns only one file when selecting multiple files and pressing Enter
File chooser dialog returns only one file when selecting multiple files and p...
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
2.8.x
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
Federico Mena Quintero
Depends on:
Blocks:
 
 
Reported: 2006-07-16 13:39 UTC by zavandi
Modified: 2007-01-25 21:01 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14



Description zavandi 2006-07-16 13:39:08 UTC
Please describe the problem:
The file chooser dialog allows selecting multiple files. If the user selects multiple files and clicks the OK button (with the mouse), gtk_file_chooser_get_filenames returns all the filenames (as it should). If, however, the user selects multiple files and presses Enter, that function returns only one filename.

Steps to reproduce:
1. Run "zenity --file-selection --multiple".
2. Select multiple files.
3. Press Enter.

Actual results:
Only one filename is printed.

Expected results:
All the selected files should've been printed.

Does this happen every time?
Yes.

Other information:
This is not a bug in zenity. I get the same behaviour if I create the dialog from Python (PyGTK).
Comment 1 Matthias Clasen 2006-07-17 12:49:55 UTC
This looks like another breakage of gtk_file_chooser_default_get_paths,
see also bug 347066
Comment 2 Federico Mena Quintero 2007-01-25 21:01:25 UTC
This works fine for me in 2.10.9, but not in 2.10.6.  Marking as fixed.