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 663565 - Add API to filter out non regular files
Add API to filter out non regular files
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gtk-bugs
Federico Mena Quintero
Depends on:
Blocks:
 
 
Reported: 2011-11-07 14:48 UTC by Guillaume Desmottes
Modified: 2018-02-10 03:23 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Guillaume Desmottes 2011-11-07 14:48:15 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.
Comment 1 Federico Mena Quintero 2011-11-08 17:59:53 UTC
("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.
Comment 2 Guillaume Desmottes 2011-11-09 08:48:39 UTC
(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.
Comment 3 Matthias Clasen 2018-02-10 03:23:47 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.