added UfRaw ID files to known filetypes
authorVladimir Nadvornik <nadvornik@suse.cz>
Sun, 29 Mar 2009 16:39:42 +0000 (16:39 +0000)
committerVladimir Nadvornik <nadvornik@suse.cz>
Sun, 29 Mar 2009 16:39:42 +0000 (16:39 +0000)
src/editors.c
src/filefilter.c
src/options.c

index 6c8ebba..7082119 100644 (file)
@@ -97,7 +97,7 @@ static GList *editor_mime_types_to_extensions(gchar **mime_types)
        /* 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"},
index d9d6f2b..b4b32b2 100644 (file)
@@ -234,6 +234,7 @@ void filter_add_defaults(void)
        /* 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)
index 38fe508..992d689 100644 (file)
@@ -154,7 +154,7 @@ void setup_default_options(ConfOptions *options)
                }
 
        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);