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