]> git.street.me.uk Git - andy/viking.git/blobdiff - src/vikgototool.c
Rename struct DownloadOptions to DownloadMapOptions
[andy/viking.git] / src / vikgototool.c
index 4ed2dfeed227916ba2124ed788a18af6ed378b20..3b7f5ceb3b7467213f11d8891724f25e73078495 100644 (file)
@@ -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;