An adventure in diving log software

Dirk Hohndel dirk at hohndel.org
Wed Feb 20 09:46:29 PST 2013


Henrik Brautaset Aronsen <subsurface at henrik.synth.no> writes:

> 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.

Uhh. That makes this harder.

> 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.

I'm surprised it doesn't show up. You've verified that you have
libzip-dev?

/D


More information about the subsurface mailing list