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 342952 - "Open File" Dialog doesn't respond when folder and files are selected
"Open File" Dialog doesn't respond when folder and files are selected
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
unspecified
Other All
: Normal normal
: Small fix
Assigned To: gtk-bugs
Federico Mena Quintero
Depends on:
Blocks:
 
 
Reported: 2006-05-25 20:21 UTC by Simon Law
Modified: 2018-02-12 17:46 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14



Description Simon Law 2006-05-25 20:21:15 UTC
From http://launchpad.net/bugs/46626

To reproduce:

1. Open gedit, or any program that uses the standard Gnome Open File dialog.
2. Select a file and a folder, so that both are shaded orange.
3. Click on the "Open" button. Nothing happens.

There should be a pop-up dialog that says "Please select files only" or
something like that.


Other information:
Comment 1 Owen Taylor 2006-05-26 12:43:27 UTC
I probably should file a separate bug about this, but there are
issues with selection handling when you are in select-multiple-files
mode.

 - Open a multiple-files file selector (evolution insert-attachment say)
   in a directory with subdirectories.
   (The first subdirectory will be selected)
 - Hit C-L and type the name of a file *in that directory*
 - Hit return to close the C-L dialog
 - Both the directory *and* the file will be selected. (But if
   the file is off the first screen, you don't see it is selected)

I don't know if this happens with the 2.9.x inline location bar, but
it makes me think (getting back to the subject of this bug report)
that in select-multiple-files mode the treeview selection should be
adjusted / hacked up so that you can select

 - One folder
 - *Or* multiple files

But if you have a folder selected and try to Control-click a file,
it should deselect the folder, and if you have multiple files selected
and Control-click a folder, it should do nothing. (I think do nothing
is better than unselecting the files)
Comment 2 Jacob 2006-08-28 15:34:10 UTC
Why is this still not confirmed!? I myself can reproduce this every single time!
Comment 3 Federico Mena Quintero 2007-01-25 20:27:56 UTC
Owen's idea from comment #1 is pretty good.  We should be able to hack the selection handler to unselect folders as appropriate.
Comment 4 qqqqqqqqq9 2008-09-15 02:29:14 UTC
Does this suggested select-policy mean, that one would  have to move files and folder separately on after the other? This would be another annoying restriction and one should be able to turn it off.
Comment 5 gnutter 2009-07-11 10:31:26 UTC
I mostly agree with Owen's suggestion in #1 but I think the "do nothing" option should apply to all cases , not selectively. 

I see no justification of treating the two cases differently , this will be confusing. Such hidden iffing and butting is only apparent to those who work on the code. The user interface must be consistent in its behaviour.

I also think there is a need to indicate that the files cannot be selected with a directory and vice versa. Simply doing nothing in response to a user action that would normally produce a result is again confusing and will give the impression of buggy behaviour. 

Since it should only be necessary to point out what is happening once, a clear error message would probably be the best solution.

Comment 6 Matthias Clasen 2018-02-10 03:26:34 UTC
We're moving to gitlab! As part of this move, we are closing bugs that haven't seen activity in more than 5 years. If this issue is still imporant to you and
still relevant with GTK+ 3.22 or master, please consider creating a gitlab issue
for it.
Comment 7 Strangiato 2018-02-12 17:46:13 UTC
reproducible on Arch Linux, gtk3 3.22.26+161+g60750b3ffd-1.