]> git.street.me.uk Git - andy/viking.git/blobdiff - src/googlesearch.c
[DOC] Mention XML configuration can override internal defaults.
[andy/viking.git] / src / googlesearch.c
index a175ccf96de72e2490c536ff894d0f68a0bf09dc..9c8939d954bc78a9c005a60a75880155c308168f 100644 (file)
@@ -30,7 +30,6 @@
 #include <glib/gi18n.h>
 
 #include "viking.h"
-#include "util.h"
 #include "curl_download.h"
 
 #include "googlesearch.h"
 #define GOOGLE_GOTO_PATTERN_2 ",lng:"
 #define GOOGLE_GOTO_NOT_FOUND "not understand the location"
 
-static DownloadMapOptions googlesearch_options = { FALSE, FALSE, "http://maps.google.com/", 0, a_check_map_file };
+static DownloadFileOptions googlesearch_options = { FALSE, FALSE, "http://maps.google.com/", 2, a_check_map_file, NULL, NULL };
 
 static void google_goto_tool_finalize ( GObject *gob );
 
 static gchar *google_goto_tool_get_url_format ( VikGotoTool *self );
-static DownloadMapOptions *google_goto_tool_get_download_options ( VikGotoTool *self );
+static DownloadFileOptions *google_goto_tool_get_download_options ( VikGotoTool *self );
 static gboolean google_goto_tool_parse_file_for_latlon(VikGotoTool *self, gchar *filename, struct LatLon *ll);
 
 G_DEFINE_TYPE (GoogleGotoTool, google_goto_tool, VIK_GOTO_TOOL_TYPE)
@@ -158,7 +157,7 @@ static gchar *google_goto_tool_get_url_format ( VikGotoTool *self )
   return GOOGLE_GOTO_URL_FMT;
 }
 
-DownloadMapOptions *google_goto_tool_get_download_options ( VikGotoTool *self )
+DownloadFileOptions *google_goto_tool_get_download_options ( VikGotoTool *self )
 {
   return &googlesearch_options;
 }