[Pkg-xfce-commits] r3377 - in goodies/branches/lenny: . xfce4-weather-plugin/debian xfce4-weather-plugin/debian/patches

Yves-Alexis Perez corsac at alioth.debian.org
Sat Jul 11 05:49:43 UTC 2009


Author: corsac
Date: 2009-07-11 17:49:42 +0000 (Sat, 11 Jul 2009)
New Revision: 3377

Added:
   goodies/branches/lenny/xfce4-weather-plugin/
   goodies/branches/lenny/xfce4-weather-plugin/debian/patches/01_add-weather.com-api-key.patch
Modified:
   goodies/branches/lenny/xfce4-weather-plugin/debian/changelog
Log:
* debian/patches:
  - 01_add-weather.com-api-key added: use the xfce4-weather-plugin API
    key so weather.com gives us the weather.                  closes: #536289

Modified: goodies/branches/lenny/xfce4-weather-plugin/debian/changelog
===================================================================
--- goodies/xfce4-weather-plugin/debian/changelog	2007-12-08 18:34:40 UTC (rev 1468)
+++ goodies/branches/lenny/xfce4-weather-plugin/debian/changelog	2009-07-11 17:49:42 UTC (rev 3377)
@@ -1,3 +1,11 @@
+xfce4-weather-plugin (0.6.2-1+lenny1) stable; urgency=low
+
+  * debian/patches:
+    - 01_add-weather.com-api-key added: use the xfce4-weather-plugin API
+      key so weather.com gives us the weather.                  closes: #536289
+
+ -- Yves-Alexis Perez <corsac at debian.org>  Sat, 11 Jul 2009 15:23:01 +0200
+
 xfce4-weather-plugin (0.6.2-1) unstable; urgency=low
 
   [ Simon Huggins ]

Added: goodies/branches/lenny/xfce4-weather-plugin/debian/patches/01_add-weather.com-api-key.patch
===================================================================
--- goodies/branches/lenny/xfce4-weather-plugin/debian/patches/01_add-weather.com-api-key.patch	                        (rev 0)
+++ goodies/branches/lenny/xfce4-weather-plugin/debian/patches/01_add-weather.com-api-key.patch	2009-07-11 17:49:42 UTC (rev 3377)
@@ -0,0 +1,29 @@
+diff --git a/panel-plugin/weather.c b/panel-plugin/weather.c
+index 75c3d3c..0eb9487 100644
+--- a/panel-plugin/weather.c
++++ b/panel-plugin/weather.c
+@@ -338,9 +338,10 @@ update_weatherdata (xfceweather_data *data)
+     }
+ 
+   /* build url */
+-  url = g_strdup_printf ("/weather/local/%s?cc=*&dayf=%d&unit=%c",
++  url = g_strdup_printf ("/weather/local/%s?cc=*&dayf=%d&unit=%c&link=xoap&prod=xoap&par=%s&key=%s",
+                          data->location_code, XML_WEATHER_DAYF_N,
+-                         data->unit == METRIC ? 'm' : 'i');
++                         data->unit == METRIC ? 'm' : 'i',
++                        PARTNER_ID, LICENSE_KEY);
+ 
+   /* start receive thread */
+   weather_http_receive_data ("xoap.weather.com", url, data->proxy_host,
+diff --git a/panel-plugin/weather.h b/panel-plugin/weather.h
+index ef85749..f0adb47 100644
+--- a/panel-plugin/weather.h
++++ b/panel-plugin/weather.h
+@@ -22,6 +22,8 @@
+ 
+ #include <libxfce4panel/xfce-panel-plugin.h>
+ #include <libxfce4util/libxfce4util.h>
++#define PARTNER_ID       "1121946239"
++#define LICENSE_KEY      "3c4cd39ee5dec84f"
+ 
+ G_BEGIN_DECLS




More information about the Pkg-xfce-commits mailing list