aboutsummaryrefslogtreecommitdiffstats
path: root/my-evolution/e-summary-weather.c
diff options
context:
space:
mode:
authorIain Holmes <iain@src.gnome.org>2001-09-18 05:05:51 +0800
committerIain Holmes <iain@src.gnome.org>2001-09-18 05:05:51 +0800
commitb621787d61869c6a2da0f33f74b7cc88654d930d (patch)
tree3c018e878356f692b2b6ef7b090e5308cdb69ba3 /my-evolution/e-summary-weather.c
parent23583a50aa0dfe8e9a75bb3ed4f7d0132958ee8b (diff)
downloadgsoc2013-evolution-b621787d61869c6a2da0f33f74b7cc88654d930d.tar.gz
gsoc2013-evolution-b621787d61869c6a2da0f33f74b7cc88654d930d.tar.zst
gsoc2013-evolution-b621787d61869c6a2da0f33f74b7cc88654d930d.zip
Don't make the confusing URL for the station name
svn path=/trunk/; revision=12911
Diffstat (limited to 'my-evolution/e-summary-weather.c')
-rw-r--r--my-evolution/e-summary-weather.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/my-evolution/e-summary-weather.c b/my-evolution/e-summary-weather.c
index 6456d2a2ea..e1dd7b3061 100644
--- a/my-evolution/e-summary-weather.c
+++ b/my-evolution/e-summary-weather.c
@@ -97,7 +97,7 @@ weather_make_html (Weather *w)
{
GString *string;
ESummaryWeatherLocation *location;
- char *sky, *temp, *cond, *url, *s;
+ char *sky, *temp, *cond, *s;
const char *icon_name;
icon_name = icon_from_weather (w);
@@ -105,14 +105,23 @@ weather_make_html (Weather *w)
g_string_sprintf (string, "<dd><img align=\"middle\" "
"src=\"%s\">&#160;<b>", icon_name);
location = g_hash_table_lookup (locations_hash, w->location);
+#if 0
if (location == NULL) {
url = make_anchor (w->location, w->location);
} else {
url = make_anchor (location->name, w->location);
}
+#endif
+ if (location == NULL) {
+ g_string_append (string, w->location);
+ } else {
+ g_string_append (string, location->name);
+ }
+#if 0
g_string_append (string, url);
g_free (url);
+#endif
g_string_append (string, "</b>:<blockquote><font size=\"-1\">");
sky = (char *) weather_sky_string (w);