[PATCH 0/3] added URI support on Windows

Lubomir I. Ivanov neolit123 at gmail.com
Tue Jan 15 09:30:29 PST 2013


On 15 January 2013 18:54, Dirk Hohndel <dirk at hohndel.org> wrote:
> "Lubomir I. Ivanov" <neolit123 at gmail.com> writes:
>
>> [PATCH 1/2] Added the OS dependent function subsurface_launch_for_uri()
>>
>> The patch commit explains briefly that URI support for Windows is a bit
>> broken primarily due to GIO.
>>
>> subsurface_launch_for_uri() can now be used to properly handle
>> passed URI's in a multiplatform way.
>>
>> Since #ifdefs are not used directly in gtk-gui.c, the linux.c and macos.c
>> implementation is the same.
>>
>> Examples of future use that may remain broken on Windows without this
>> patch:
>> - opening URLs other than the ones in the about dialog for some sort
>> of web integration
>> - opening dive XML files to be edited in a "default text editor"
>> - opening local images / media
>
>
> Let me guess... this could then also be used to rather easily implement
> the other way of doing GPS location visualization... turning the
> Location text into a link to a Google Map...
>
> Is this something you are working on?
>

i definitely have something like that in mind...
opening a dive info dialog could have a [view map] button that simply
opens a browser and shows the dive location on google maps as a maker,
that even has text passed from subsurface.

having a list of selected dives can have the [view dives on map] action:
by doing so, selected dive location can appear as multiple makers.

now, to my understanding multiple markers require a little bit of
backend, since the default per "URL API" only allows one marker using
"q=".

so something in these lines has to be done (view source):
http://econym.org.uk/gmap/example_plotpoints.htm?q=Hello%20world@53,-2&q=My%20Place@53.5,-2.5

would it be an option to have a http://subsurface.hohndel.org/map.htm ?

also, i'm a bit concerned about URL lengths, so these have to be investigated.
if these don't meet our requirements, then perhaps the POST method
with some sort of data structure has to be used to a PHP script,
instead.

> pushed
>

thanks

lubomir
--


More information about the subsurface mailing list