Updating branch refs/heads/master
to 78cf9cf3a7e099c582b4f75dc4e755cba61221e2 (commit)
from 1294931a98cb360cddd92891247c32f71ec26512 (commit)
commit 78cf9cf3a7e099c582b4f75dc4e755cba61221e2
Author: Harald Judt <[email protected]>
Date: Tue Jul 31 11:11:30 2012 +0200
Astrological data: Schedule download when applying config options.
Since the location may have changed, force the download of
astrological data.
panel-plugin/weather-config.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/panel-plugin/weather-config.c b/panel-plugin/weather-config.c
index ea40fb6..d8ea4be 100644
--- a/panel-plugin/weather-config.c
+++ b/panel-plugin/weather-config.c
@@ -255,6 +255,9 @@ apply_options(xfceweather_dialog *dialog)
data->location_name =
g_strdup(gtk_entry_get_text(GTK_ENTRY(dialog->txt_loc_name)));
+ /* force update of astrological data */
+ memset(&data->last_astro_update, 0, sizeof(data->last_astro_update));
+
/* call labels_clear() here */
if (data->labels && data->labels->len > 0)
g_array_free(data->labels, TRUE);
_______________________________________________
Xfce4-commits mailing list
[email protected]
https://mail.xfce.org/mailman/listinfo/xfce4-commits