changeset 1809:e1c18f81e637

Add unknown file class to grouping
author mow
date Sun, 28 Feb 2010 22:55:37 +0000
parents 6c61c246506b
children c416d099a3dc
files src/filefilter.c src/options.c
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/filefilter.c	Sun Feb 28 15:17:12 2010 +0000
+++ b/src/filefilter.c	Sun Feb 28 22:55:37 2010 +0000
@@ -283,6 +283,7 @@
 		if (g_ascii_strcasecmp(ext, "%image") == 0) file_class = FORMAT_CLASS_IMAGE;
 		else if (g_ascii_strcasecmp(ext, "%raw") == 0) file_class = FORMAT_CLASS_RAWIMAGE;
 		else if (g_ascii_strcasecmp(ext, "%meta") == 0) file_class = FORMAT_CLASS_META;
+		else if (g_ascii_strcasecmp(ext, "%unknown") == 0) file_class = FORMAT_CLASS_UNKNOWN;
 		
 		if (file_class == -1) 
 			{
--- a/src/options.c	Sun Feb 28 15:17:12 2010 +0000
+++ b/src/options.c	Sun Feb 28 22:55:37 2010 +0000
@@ -149,7 +149,7 @@
 		}
 
 	set_default_image_overlay_template_string(&options->image_overlay.template_string);
-	options->sidecar.ext = g_strdup(".jpg;%raw;.ufraw;.xmp");
+	options->sidecar.ext = g_strdup(".jpg;%raw;.ufraw;.xmp;%unknown");
 
 	options->shell.path = g_strdup(GQ_DEFAULT_SHELL_PATH);
 	options->shell.options = g_strdup(GQ_DEFAULT_SHELL_OPTIONS);