GNOME Bugzilla – Bug 140429
Open dialog doesn't have filters
Last modified: 2004-12-22 21:47:04 UTC
Module: GPDF (GNOME PDF Viewer) Version: 0.130 Description: Start gpdf. Click Open... The file chooser lists all the files present in a given directory. Instead, it would be better to give an option(in the form of a combo box) to either select the pdf files or All files ... similar to other modules, thus eliminating the need to search for the required files in the list. Regards Sathwik.R
Created attachment 26786 [details] [review] The patch adds filters to the open dialog.... Hope the programming style is in accordance with the standard one ... Also..the unified diff is submitted..
Sorry, you're not the first to submit a patch for that bug, there's already one in bug 137952. Better search for existing bugs before writing the patch to avoid duplicate work. If I had to review the patch, I'd say: * gpdf can't open PostScript files * gtk_file_filter_add_mime_type (pdf_filter, "application/pdf") is better than gtk_file_filter_add_pattern(filter, "*.pdf") * gtk_file_chooser_set_local_only(GTK_FILE_CHOOSER(chooser), TRUE); doesn't seem to be related to the missing filters. *** This bug has been marked as a duplicate of 137952 ***