[evolution-data-server] Bug 603311 - Prepare for new weather_info_get_icon_name() return values



commit d664af7778a1b0aa10c3a2abe1336c766d873288
Author: Frank Solensky <frank src gnome org>
Date:   Mon Nov 30 14:00:28 2009 +0530

     Bug 603311 -  Prepare for new weather_info_get_icon_name() return values

 calendar/backends/weather/e-cal-backend-weather.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/calendar/backends/weather/e-cal-backend-weather.c b/calendar/backends/weather/e-cal-backend-weather.c
index f16f949..7365b99 100644
--- a/calendar/backends/weather/e-cal-backend-weather.c
+++ b/calendar/backends/weather/e-cal-backend-weather.c
@@ -245,13 +245,13 @@ getCategory (WeatherInfo *report)
 		const gchar *icon_name;
 	} categories[] = {
 		{ N_("Weather: Fog"),		"weather-fog" },
-		{ N_("Weather: Cloudy"),	"weather-few-clouds" },
 		{ N_("Weather: Cloudy Night"),	"weather-few-clouds-night" },
+		{ N_("Weather: Cloudy"),	"weather-few-clouds" },
 		{ N_("Weather: Overcast"),	"weather-overcast" },
 		{ N_("Weather: Showers"),	"weather-showers" },
 		{ N_("Weather: Snow"),		"weather-snow" },
-		{ N_("Weather: Sunny"),	"weather-clear" },
 		{ N_("Weather: Clear Night"),	"weather-clear-night" },
+		{ N_("Weather: Sunny"),		"weather-clear" },
 		{ N_("Weather: Thunderstorms"), "weather-storm" },
 		{ NULL,				NULL }
 	};
@@ -263,7 +263,8 @@ getCategory (WeatherInfo *report)
 		return NULL;
 
 	for (i = 0; categories [i].description; i++) {
-		if (g_str_equal (categories [i].icon_name, icon_name))
+		if (!g_ascii_strncasecmp (categories [i].icon_name,
+					      icon_name, strlen(icon_name)))
 			return _(categories [i].description);
 	}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]