GNOME Bugzilla – Bug 663565
Add API to filter out non regular files
Last modified: 2018-02-10 03:23:47 UTC
I just wrote some code to filter out socket files in Empathy (bug #663563). I suspect most people don't care about non regular files, so GtkFileChooser or GtkFilter should probably gain some API to easily filter those out.
("Hey, I just list directory contents") :) What would this look like - gtk_file_chooser_set_show_only_regular_files(chooser, boolean) ? Would the default be True? (If so, I'd simply gray out special files rather than not show them) While I appreciate the purpose, isn't this a bit of overkill for a general-purpose API? If the user is visiting folders that have socket files in them, he is venturing in places were he'd better know what he's doing.
(In reply to comment #1) > What would this look like - > gtk_file_chooser_set_show_only_regular_files(chooser, boolean) ? Would the > default be True? (If so, I'd simply gray out special files rather than not > show them) Yeah something like that. I agree, that should be the default. > While I appreciate the purpose, isn't this a bit of overkill for a > general-purpose API? If the user is visiting folders that have socket files in > them, he is venturing in places were he'd better know what he's doing. Fair enough. But greying them out shouldn't be that hard and is always good to have I think.
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.