[gnome-color-manager] Add a workaround if people are not running shard-mime-info from git master



commit b4e1f05c309bf7f55d0c9ce28dcbd70ea07f7b4a
Author: Richard Hughes <richard hughsie com>
Date:   Fri Dec 4 15:24:16 2009 +0000

    Add a workaround if people are not running shard-mime-info from git master

 src/gcm-prefs.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/gcm-prefs.c b/src/gcm-prefs.c
index 792b729..673eba5 100644
--- a/src/gcm-prefs.c
+++ b/src/gcm-prefs.c
@@ -647,6 +647,13 @@ gcm_prefs_calibrate_device_get_icc_profile (void)
 	/* setup the filter */
 	filter = gtk_file_filter_new ();
 	gtk_file_filter_add_mime_type (filter, "application/vnd.iccprofile");
+
+	/* we can remove this when we depend on a new shared-mime-info */
+	gtk_file_filter_add_pattern (filter, "*.icc");
+	gtk_file_filter_add_pattern (filter, "*.icm");
+	gtk_file_filter_add_pattern (filter, "*.ICC");
+	gtk_file_filter_add_pattern (filter, "*.ICM");
+
 	/* TRANSLATORS: filter name on the file->open dialog */
 	gtk_file_filter_set_name (filter, _("Supported ICC profiles"));
 	gtk_file_chooser_add_filter (GTK_FILE_CHOOSER(dialog), filter);



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