X-Git-Url: https://git.street.me.uk/andy/viking.git/blobdiff_plain/fb07e4d71c0315a0f7af12b3cf31194efa8c7542..b529dc9c00bbafad3671e76e719277d4deecddbc:/src/vikgototool.c?ds=inline diff --git a/src/vikgototool.c b/src/vikgototool.c index 4ed2dfee..3b7f5ceb 100644 --- a/src/vikgototool.c +++ b/src/vikgototool.c @@ -40,7 +40,7 @@ static GObjectClass *parent_class; static void goto_tool_finalize ( GObject *gob ); static gchar *goto_tool_get_label ( VikGotoTool *vw ); -static DownloadOptions *goto_tool_get_download_options ( VikGotoTool *self ); +static DownloadMapOptions *goto_tool_get_download_options ( VikGotoTool *self ); typedef struct _VikGotoToolPrivate VikGotoToolPrivate; @@ -204,7 +204,7 @@ static gchar *goto_tool_get_label ( VikGotoTool *self ) return g_strdup ( priv->label ); } -static DownloadOptions *goto_tool_get_download_options ( VikGotoTool *self ) +static DownloadMapOptions *goto_tool_get_download_options ( VikGotoTool *self ) { // Default: return NULL return NULL; @@ -220,7 +220,7 @@ gchar *vik_goto_tool_get_url_format ( VikGotoTool *self ) return VIK_GOTO_TOOL_GET_CLASS( self )->get_url_format( self ); } -DownloadOptions *vik_goto_tool_get_download_options ( VikGotoTool *self ) +DownloadMapOptions *vik_goto_tool_get_download_options ( VikGotoTool *self ) { return VIK_GOTO_TOOL_GET_CLASS( self )->get_download_options( self ); } @@ -255,7 +255,7 @@ int vik_goto_tool_get_coord ( VikGotoTool *self, VikWindow *vw, VikViewport *vvp uri = g_strdup_printf(vik_goto_tool_get_url_format(self), escaped_srch_str); /* TODO: curl may not be available */ - if (curl_download_uri(uri, tmp_file, vik_goto_tool_get_download_options(self))) { /* error */ + if (curl_download_uri(uri, tmp_file, vik_goto_tool_get_download_options(self), 0, NULL)) { /* error */ fclose(tmp_file); tmp_file = NULL; ret = -1;