[Xfce4-commits] <xfce4-weather-plugin:master> Clear scrollbox labels before updating conditions (bug #9210).

Harald Judt noreply at xfce.org
Mon Aug 13 19:20:01 CEST 2012


Updating branch refs/heads/master
         to 5e7df6a521a09301becc2448553b306af57a3d49 (commit)
       from 1201030fbd77804988fcfe7985401b7713179d88 (commit)

commit 5e7df6a521a09301becc2448553b306af57a3d49
Author: Andrzej Kośnikowski <myshovoore at go2.pl>
Date:   Mon Aug 13 18:56:43 2012 +0200

    Clear scrollbox labels before updating conditions (bug #9210).
    
    When updating current conditions (that is, switching to a new data
    point in already downloaded data), currently shown labels are not
    cleared before adding labels referring to the new conditions.
    
    Result: There are two temperature labels displayed, with animation
    between them. Both show the same value. After another hour there
    are three labels - two with the old value and one with the new.

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

diff --git a/panel-plugin/weather.c b/panel-plugin/weather.c
index 8fc93e8..cce9b9c 100644
--- a/panel-plugin/weather.c
+++ b/panel-plugin/weather.c
@@ -537,8 +537,10 @@ update_weatherdata(xfceweather_data *data)
     }
 
     /* update current conditions, icon and labels */
-    if (need_conditions_update(data))
+    if (need_conditions_update(data)) {
+        gtk_scrollbox_clear(GTK_SCROLLBOX(data->scrollbox));
         update_current_conditions(data);
+    }
 
     /* update night time status and icon */
     night_time = is_night_time(data->astrodata);


More information about the Xfce4-commits mailing list