[Xfce4-commits] <xfce4-weather-plugin:master> Do not generate current conditions twice.

Harald Judt noreply at xfce.org
Sun Aug 19 10:22:04 CEST 2012


Updating branch refs/heads/master
         to 89d51d06a5cadf1e2cf370b38718c0ea085c15cf (commit)
       from 5f81bc430f45981cddebb29fe00932a34edc1aab (commit)

commit 89d51d06a5cadf1e2cf370b38718c0ea085c15cf
Author: Harald Judt <h.judt at gmx.at>
Date:   Sun Aug 19 10:16:42 2012 +0200

    Do not generate current conditions twice.
    
    Updating current conditions will be done immediately after download
    is complete.

 panel-plugin/weather.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/panel-plugin/weather.c b/panel-plugin/weather.c
index 21242b8..a8ea0e5 100644
--- a/panel-plugin/weather.c
+++ b/panel-plugin/weather.c
@@ -499,6 +499,10 @@ update_weatherdata(xfceweather_data *data)
 
         /* cleanup */
         g_free(url);
+
+        /* cb_update will deal with everything that follows this
+         * block, so let's return instead of doing things twice */
+        return TRUE;
     }
 
     /* update current conditions, icon and labels */


More information about the Xfce4-commits mailing list