gtk-rbock-981208-0.patch.gz Dec. 08, 1998 Patch for gtk+-1.1.5, gtkfilesel.[ch], Roland Bock Many programs can read just a few file formats, often with a certain extension. So it would be nice to tell GtkFileSelection to display just the files with the matching extension(s). This is not possible via gtk_file_selection_complete() as this function filters both directories and files, is valid only for the current directory and allows just for one filter (it is good for other things though). This patch adds one function to the GtkFileSelection dialog: gtk_file_selection_set_filter(GtkFileSelection *filesel, gchar **filter, gint numfilter); When this function is called, filenames are compared to the filter(s) before being displayed, until gtk_file_selection_set_filter is called again with another or no filter or the dialog is destroyed. Example: If filter={"*.gif", ".jpg"}; numfilter=2; the GtkFileSelectionDialog will display only GIF and JPEG Files. If the function is not called, the dialog does exactly the same as it has done before using the patch. Greetings, Roland Bock diff --version diff - GNU diffutils version 2.7 used diff -u original_file patched_file