Blame cairo-dock-plugins-3.4.1-0004-weather-update-URL.patch

86bc921
From 402a2d7bb657be4ad4072f07612e008e846d5e97 Mon Sep 17 00:00:00 2001
86bc921
From: Fabounet <fabounet03@gmail.com>
86bc921
Date: Sun, 22 May 2016 21:13:21 +0200
86bc921
Subject: [PATCH] [1581725] Updated the weather URL we retrieve data from
86bc921
86bc921
---
86bc921
 weather/src/applet-config.c    | 2 +-
86bc921
 weather/src/applet-read-data.c | 3 ---
86bc921
 weather/src/applet-struct.h    | 3 +++
86bc921
 3 files changed, 4 insertions(+), 4 deletions(-)
86bc921
86bc921
diff --git a/weather/src/applet-config.c b/weather/src/applet-config.c
86bc921
index c9a33c2..0a27a8a 100755
86bc921
--- a/weather/src/applet-config.c
86bc921
+++ b/weather/src/applet-config.c
86bc921
@@ -174,7 +174,7 @@ static void _on_got_location_data (const gchar *cLocationData, GldiModuleInstanc
86bc921
 	gldi_task_discard (myData.pGetLocationTask);
86bc921
 	myData.pGetLocationTask = NULL;
86bc921
 }
86bc921
-#define CD_WEATHER_BASE_URL "http://xml.weather.com"
86bc921
+
86bc921
 static void _cd_weather_search_for_location (GtkEntry *pEntry, GldiModuleInstance *myApplet)
86bc921
 {
86bc921
 	const gchar *cLocationName = gtk_entry_get_text (pEntry);
86bc921
diff --git a/weather/src/applet-read-data.c b/weather/src/applet-read-data.c
86bc921
index 0bbdce7..8ca8d21 100755
86bc921
--- a/weather/src/applet-read-data.c
86bc921
+++ b/weather/src/applet-read-data.c
86bc921
@@ -30,9 +30,6 @@
86bc921
 #include "applet-load-icons.h"
86bc921
 #include "applet-read-data.h"
86bc921
 
86bc921
-#define CD_WEATHER_BASE_URL "http://xml.weather.com"
86bc921
-
86bc921
-
86bc921
 static xmlDocPtr _cd_weather_open_xml_buffer (const gchar *cData, xmlNodePtr *root_node, const gchar *cRootNodeName, GError **erreur)
86bc921
 {
86bc921
 	if (cData == NULL || *cData == '\0')
86bc921
diff --git a/weather/src/applet-struct.h b/weather/src/applet-struct.h
86bc921
index e96191e..02ba3d0 100755
86bc921
--- a/weather/src/applet-struct.h
86bc921
+++ b/weather/src/applet-struct.h
86bc921
@@ -29,6 +29,9 @@
86bc921
 
86bc921
 #define WEATHER_DEFAULT_NAME "weather"
86bc921
 
86bc921
+#define CD_WEATHER_BASE_URL "http://wxdata.weather.com/wxdata"
86bc921
+
86bc921
+
86bc921
 #define _display(cValue) ((cValue) == NULL || *((gchar*)cValue) == 'N' ? "?" : (const gchar*)(cValue))
86bc921
 
86bc921
 struct _AppletConfig {