From: Rob Norris Date: Thu, 11 Sep 2014 18:22:13 +0000 (+0100) Subject: Add TIFF as an image file type that gets listed in the applied filter. X-Git-Url: https://git.street.me.uk/andy/viking.git/commitdiff_plain/4ebbec1d0bc1a029ba913f6d941bb5b5e6c73806?hp=1a358f701ff063d3dc0f1ae87fcc70f3dd12660a Add TIFF as an image file type that gets listed in the applied filter. --- diff --git a/src/vikfileentry.c b/src/vikfileentry.c index aed0df16..40097c4b 100644 --- a/src/vikfileentry.c +++ b/src/vikfileentry.c @@ -119,6 +119,11 @@ static void choose_file ( VikFileEntry *vfe ) gtk_file_filter_add_mime_type ( filter, "image/png"); gtk_file_chooser_add_filter ( GTK_FILE_CHOOSER(vfe->file_selector), filter ); + filter = gtk_file_filter_new (); + gtk_file_filter_set_name ( filter, _("TIFF") ); + gtk_file_filter_add_mime_type ( filter, "image/tiff"); + gtk_file_chooser_add_filter ( GTK_FILE_CHOOSER(vfe->file_selector), filter ); + break; } case VF_FILTER_MBTILES: { diff --git a/src/vikfileentry.h b/src/vikfileentry.h index d5585f2e..f069c66b 100644 --- a/src/vikfileentry.h +++ b/src/vikfileentry.h @@ -46,7 +46,7 @@ GType vik_file_entry_get_type (); typedef enum { VF_FILTER_NONE = 0, - VF_FILTER_IMAGE, // JPG+PNG + VF_FILTER_IMAGE, // JPG+PNG+TIFF VF_FILTER_MBTILES, VF_FILTER_LAST } vf_filter_type;