GNOME Bugzilla – Bug 149535
GtkFileChooser in file-open, select-multiple mode allows selection of multiple directories
Last modified: 2018-02-10 03:33:01 UTC
GtkFileChooser with GTK_FILE_CHOOSER_ACTION_OPEN in select-multiple mode allows to select multiple directories which results in inability to use the default widget (button) to enter a directory
We should use gtk_tree_selection_set_select_function() with a callback that tests for a folder already being selected. In that case, return false. This should of course only be done in the appropriate combinations of the GtkFileChooserAction and multiple selection mode.
*** Bug 149533 has been marked as a duplicate of this bug. ***
Created attachment 168305 [details] [review] patch on 2.20.1
this patch prevent the selection of a directory when there is already a directory selected in OPEN action and multiple select mode.
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.