[Xfce4-commits] <xfce4-weather-plugin:master> Sort weather data after download.

Harald Judt noreply at xfce.org
Tue Dec 11 21:56:04 CET 2012


Updating branch refs/heads/master
         to fef742a0e00dcfb74b348ea56fafffd1c69ad07b (commit)
       from 1b65eeab5dda56c5af0535989c41136aaebf688c (commit)

commit fef742a0e00dcfb74b348ea56fafffd1c69ad07b
Author: Harald Judt <h.judt at gmx.at>
Date:   Tue Dec 11 21:24:48 2012 +0100

    Sort weather data after download.

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

diff --git a/panel-plugin/weather.c b/panel-plugin/weather.c
index 6a60901..7016be5 100644
--- a/panel-plugin/weather.c
+++ b/panel-plugin/weather.c
@@ -378,6 +378,8 @@ cb_weather_update(SoupSession *session,
     }
 
     xml_weather_clean(data->weatherdata);
+    g_array_sort(data->weatherdata->timeslices,
+                 (GCompareFunc) xml_time_compare);
     weather_debug("Updating current conditions.");
     update_current_conditions(data);
     write_cache_file(data);


More information about the Xfce4-commits mailing list