[Xfce4-commits] <xfce4-weather-plugin:master> fix temp

Colin Leroy noreply at xfce.org
Wed Nov 16 22:34:05 CET 2011


Updating branch refs/heads/master
         to 21813ad3d5241a982702175a3ebdbaa84f439841 (commit)
       from 8fdc23353982a9b6a3c8a2c51d2d6d45be3c1fae (commit)

commit 21813ad3d5241a982702175a3ebdbaa84f439841
Author: Colin Leroy <colin at colino.net>
Date:   Tue Nov 15 22:40:16 2011 +0100

    fix temp

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

diff --git a/panel-plugin/weather-data.c b/panel-plugin/weather-data.c
index a9c05d9..64d0768 100644
--- a/panel-plugin/weather-data.c
+++ b/panel-plugin/weather-data.c
@@ -82,7 +82,7 @@ get_unit (xml_weather *data, units unit, datas type)
 
 	switch(type) {
 	case TEMPERATURE:
-		return CHK_NULL(loc->temperature_unit);
+		return strcmp(loc->temperature_unit, "celcius") ? "°F":"°C";
 	case PRESSURE:
 		return CHK_NULL(loc->pressure_unit);
 	case WIND_SPEED:


More information about the Xfce4-commits mailing list