An adventure in diving log software

Henrik Brautaset Aronsen subsurface at henrik.synth.no
Wed Feb 20 09:34:58 PST 2013


Dirk Hohndel wrote:
> Henrik Brautaset Aronsen<subsurface at henrik.synth.no>  writes:
>
>> And Dirk, we can postpone this feature until 3.1 :)
>
> Well, I looked at Miika's patch and it seems rather harmless. It's
> another xslt transformation and the support to call that from the
> parser.

Yup.  The only thing is, divelogs.de delivers this as a divelogsData.zip 
with single dive XML's within. Which shouldn't be a problem, we just 
need to enable the unzip feature the same way we do it with SDE.

I tried just adding *.zip to the gtk file filter...:

diff --git a/gtk-gui.c b/gtk-gui.c
index 40954ba..65a308c 100644
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -126,6 +126,8 @@ static GtkFileFilter *setup_filter(void)
  #ifdef LIBZIP
         gtk_file_filter_add_pattern(filter, "*.sde");
         gtk_file_filter_add_pattern(filter, "*.SDE");
+       gtk_file_filter_add_pattern(filter, "*.zip");
+       gtk_file_filter_add_pattern(filter, "*.ZIP");
  #endif
         gtk_file_filter_add_mime_type(filter, "text/xml");
         gtk_file_filter_set_name(filter, _("XML file"));

... but there's more to it, I guess.  The zip file doesn't show up, and 
importing the zip on the command line fails.

Henrik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20130220/10c4ea12/attachment.html>


More information about the subsurface mailing list