summaryrefslogtreecommitdiffstats
path: root/gtk-gui.c
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2013-02-12 08:07:00 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-12 08:42:46 -0800
commitcbc818ddfe5d0d0c8509f9474f03a9a209acae18 (patch)
tree739a388ee36db094a52ef9f4adf82abffbbd0625 /gtk-gui.c
parentb1c01f62eaf7380e929db6d4c6bb0cbadfdaec50 (diff)
downloadsubsurface-cbc818ddfe5d0d0c8509f9474f03a9a209acae18.tar.gz
Include SDE files on file selector
Include SDE files on the file selectors if zip support is enabled. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'gtk-gui.c')
-rw-r--r--gtk-gui.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk-gui.c b/gtk-gui.c
index 20a2da824..cd9f7579a 100644
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -123,6 +123,10 @@ static GtkFileFilter *setup_filter(void)
GtkFileFilter *filter = gtk_file_filter_new();
gtk_file_filter_add_pattern(filter, "*.xml");
gtk_file_filter_add_pattern(filter, "*.XML");
+#ifdef LIBZIP
+ gtk_file_filter_add_pattern(filter, "*.sde");
+ gtk_file_filter_add_pattern(filter, "*.SDE");
+#endif
gtk_file_filter_add_mime_type(filter, "text/xml");
gtk_file_filter_set_name(filter, _("XML file"));