[gnome-color-manager] Fix the reference file import filter



commit a3bf4656fe44bbc62fb2e6a693003a34cf900b20
Author: Pascal de Bruijn <pmjdebruijn pcode nl>
Date:   Tue Dec 22 09:19:09 2009 +0000

    Fix the reference file import filter

 src/gcm-prefs.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/gcm-prefs.c b/src/gcm-prefs.c
index c641a36..dbb047a 100644
--- a/src/gcm-prefs.c
+++ b/src/gcm-prefs.c
@@ -279,7 +279,6 @@ gcm_prefs_calibrate_device_get_scanned_profile (const gchar *directory)
 	/* setup the filter */
 	filter = gtk_file_filter_new ();
 	gtk_file_filter_add_mime_type (filter, "image/tiff");
-	gtk_file_filter_add_mime_type (filter, "application/x-it87_2");
 	/* TRANSLATORS: filter name on the file->open dialog */
 	gtk_file_filter_set_name (filter, _("Supported images files"));
 	gtk_file_chooser_add_filter (GTK_FILE_CHOOSER(dialog), filter);
@@ -321,8 +320,14 @@ gcm_prefs_calibrate_device_get_reference_data (const gchar *directory)
 
 	/* setup the filter */
 	filter = gtk_file_filter_new ();
+	gtk_file_filter_add_mime_type (filter, "application/x-it87");
+
+	/* we can remove this when we depend on a new shared-mime-info */
 	gtk_file_filter_add_pattern (filter, "*.txt");
 	gtk_file_filter_add_pattern (filter, "*.TXT");
+	gtk_file_filter_add_pattern (filter, "*.it8");
+	gtk_file_filter_add_pattern (filter, "*.IT8");
+
 	/* TRANSLATORS: filter name on the file->open dialog */
 	gtk_file_filter_set_name (filter, _("CIE values"));
 	gtk_file_chooser_add_filter (GTK_FILE_CHOOSER(dialog), filter);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]