[Xfce4-commits] <xfce4-weather-plugin:master> Save and restore apparent temperature setting.
Harald Judt
noreply at xfce.org
Thu Jan 10 16:34:02 CET 2013
Updating branch refs/heads/master
to e71e1ae2bd7a79606a6aaef9c3f66ab1dfbb12f7 (commit)
from 9fcaf690bac68bd22850c55163542f00be65ec02 (commit)
commit e71e1ae2bd7a79606a6aaef9c3f66ab1dfbb12f7
Author: Harald Judt <h.judt at gmx.at>
Date: Wed Jan 9 17:14:10 2013 +0100
Save and restore apparent temperature setting.
panel-plugin/weather.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/panel-plugin/weather.c b/panel-plugin/weather.c
index ed52c28..5bb2e9c 100644
--- a/panel-plugin/weather.c
+++ b/panel-plugin/weather.c
@@ -754,6 +754,9 @@ xfceweather_read_config(XfcePanelPlugin *plugin,
xfce_rc_read_int_entry(rc, "units_precipitations", MILLIMETERS);
data->units->altitude =
xfce_rc_read_int_entry(rc, "units_altitude", METERS);
+ data->units->apparent_temperature =
+ xfce_rc_read_int_entry(rc, "model_apparent_temperature",
+ STEADMAN);
data->round = xfce_rc_read_bool_entry(rc, "round", TRUE);
@@ -858,6 +861,8 @@ xfceweather_write_config(XfcePanelPlugin *plugin,
xfce_rc_write_int_entry(rc, "units_precipitations",
data->units->precipitations);
xfce_rc_write_int_entry(rc, "units_altitude", data->units->altitude);
+ xfce_rc_write_int_entry(rc, "model_apparent_temperature",
+ data->units->apparent_temperature);
xfce_rc_write_bool_entry(rc, "round", data->round);
More information about the Xfce4-commits
mailing list