+2005-07-06 Carlos Garcia Campos <carlosgc@gnome.org>
+
+ * shell/ev-document-types.c: set "All Documents" as default filter in
+ open dialog
+
2005-07-06 Martin Kretzschmar <martink@gnome.org>
* shell/ev-metadata-manager.c (ev_metadata_manager_set_int)
GList *mime_types;
GtkFileFilter *filter;
GtkFileFilter *default_filter;
+ GtkFileFilter *document_filter;
if (document != NULL) {
backend = ev_document_factory_get_backend (document);
}
- default_filter = filter = gtk_file_filter_new ();
+ default_filter = document_filter = filter = gtk_file_filter_new ();
gtk_file_filter_set_name (filter, _("All Documents"));
mime_types = ev_document_factory_get_all_mime_types ();
file_filter_add_mime_list_and_free (filter, mime_types);
gtk_file_filter_add_pattern (filter, "*");
gtk_file_chooser_add_filter (GTK_FILE_CHOOSER (chooser), filter);
- gtk_file_chooser_set_filter (GTK_FILE_CHOOSER (chooser), default_filter);
+ gtk_file_chooser_set_filter (GTK_FILE_CHOOSER (chooser),
+ document == NULL ? document_filter : default_filter);
}