changeset 1486:1b2ddc6b2b27

added UfRaw ID files to known filetypes
author nadvornik
date Sun, 29 Mar 2009 16:39:42 +0000
parents 0e82a03c165b
children d6061c019ceb
files src/editors.c src/filefilter.c src/options.c
diffstat 3 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/editors.c	Sun Mar 29 14:26:44 2009 +0000
+++ b/src/editors.c	Sun Mar 29 16:39:42 2009 +0000
@@ -97,7 +97,7 @@
 	/* FIXME: this should be rewritten to use the shared mime database, as soon as we switch to gio */
 	
 	static const gchar *conv_table[][2] = {
-		{"application/x-ufraw",	"%raw"},
+		{"application/x-ufraw",	".ufraw"},
 		{"image/*",		"*"},
 		{"image/bmp",		".bmp"},
 		{"image/gif",		".gif"},
--- a/src/filefilter.c	Sun Mar 29 14:26:44 2009 +0000
+++ b/src/filefilter.c	Sun Mar 29 16:39:42 2009 +0000
@@ -234,6 +234,7 @@
 	/* non-image files that might be desirable to show */
 	filter_add_if_missing("xmp", "XMP sidecar", ".xmp", FORMAT_CLASS_META, TRUE, FALSE, TRUE);
 	filter_add_if_missing("gqv", GQ_APPNAME " image collection", GQ_COLLECTION_EXT, FORMAT_CLASS_META, FALSE, FALSE, TRUE);
+	filter_add_if_missing("ufraw", "UFRaw ID file", ".ufraw", FORMAT_CLASS_META, FALSE, FALSE, TRUE);
 
 	/* These are the raw camera formats with embedded jpeg/exif.
 	 * (see format_raw.c and/or exiv2.cc)
--- a/src/options.c	Sun Mar 29 14:26:44 2009 +0000
+++ b/src/options.c	Sun Mar 29 16:39:42 2009 +0000
@@ -154,7 +154,7 @@
 		}
 
 	set_default_image_overlay_template_string(&options->image_overlay.template_string);
-	options->sidecar.ext = g_strdup(".jpg;%raw;.xmp");
+	options->sidecar.ext = g_strdup(".jpg;%raw;.ufraw;.xmp");
 
 	options->shell.path = g_strdup(GQ_DEFAULT_SHELL_PATH);
 	options->shell.options = g_strdup(GQ_DEFAULT_SHELL_OPTIONS);