GNOME Bugzilla – Bug 128396
GtkFileChooser doesn't show any files initially if filters are used.
Last modified: 2011-02-04 16:16: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.
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.