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 128396 - GtkFileChooser doesn't show any files initially if filters are used.
GtkFileChooser doesn't show any files initially if filters are used.
Status: RESOLVED NOTABUG
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
2.3.x
Other All
: High major
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2003-12-02 22:09 UTC by Jan Arne Petersen
Modified: 2011-02-04 16:16 UTC
See Also:
GNOME target: ---
GNOME version: 2.5/2.6



Description Jan Arne Petersen 2003-12-02 22:09:03 UTC
GtkFileChooser doesn't show files initially if filters are used. You have
to change the selected filter or the directory before you can see the files.
Comment 1 Jan Arne Petersen 2004-02-19 12:30:23 UTC
This problem occurs if if you first add a filter to a chooser and than
add a pattern to the filter:

filter = gtk_file_filter_new ();
gtk_file_chooser_add_filter (chooser, filter);
gtk_filter_add_pattern (filter, "*.foo");

The problem is that the file list is filtered in the add_filter 
function and the filter doesn't notify about changes, so the pattern 
is ignored till another folder is selected or another filter is 
selected.