[Xfce4-commits] <xfce4-weather-plugin:master> Dump geolocation data after auto-detection (debug mode).

Harald Judt noreply at xfce.org
Tue Nov 20 20:18:17 CET 2012


Updating branch refs/heads/master
         to 75b4ab989f5749ac47a4badad4750b8e9f1eceab (commit)
       from 94d75c2a08a05c485cae127741717387f25c2d2e (commit)

commit 75b4ab989f5749ac47a4badad4750b8e9f1eceab
Author: Harald Judt <h.judt at gmx.at>
Date:   Tue Nov 20 20:11:07 2012 +0100

    Dump geolocation data after auto-detection (debug mode).

 panel-plugin/weather-search.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/panel-plugin/weather-search.c b/panel-plugin/weather-search.c
index 3618b8a..3a83178 100644
--- a/panel-plugin/weather-search.c
+++ b/panel-plugin/weather-search.c
@@ -343,8 +343,11 @@ cb_geolocation(SoupSession *session,
     unit_systems unit_system;
     gsize length;
 
-    if (!(geo = (xml_geolocation *)
-          parse_xml_document(msg, (XmlParseFunc) parse_geolocation))) {
+    geo = (xml_geolocation *)
+        parse_xml_document(msg, (XmlParseFunc) parse_geolocation);
+    weather_dump(weather_dump_geolocation, geo);
+
+    if (!geo) {
         data->cb(NULL, NULL, NULL, METRIC, data->user_data);
         g_free(data);
         return;


More information about the Xfce4-commits mailing list