diff options
Diffstat (limited to 'my-evolution')
-rw-r--r-- | my-evolution/ChangeLog | 6 | ||||
-rw-r--r-- | my-evolution/e-summary-weather.c | 14 |
2 files changed, 7 insertions, 13 deletions
diff --git a/my-evolution/ChangeLog b/my-evolution/ChangeLog index e8fe2db151..ff35b94d2a 100644 --- a/my-evolution/ChangeLog +++ b/my-evolution/ChangeLog @@ -1,3 +1,9 @@ +2002-09-23 Ettore Perazzoli <ettore@ximian.com> + + * e-summary-weather.c (e_summary_weather_get_html): Don't add any + header if there are no weather stations. [#15101] + (make_anchor): Removed unused function. + 2002-09-17 Ettore Perazzoli <ettore@ximian.com> * Locations: Add Israel. [Patch by Sam Popper diff --git a/my-evolution/e-summary-weather.c b/my-evolution/e-summary-weather.c index 2be84faec6..6391fa7c3e 100644 --- a/my-evolution/e-summary-weather.c +++ b/my-evolution/e-summary-weather.c @@ -61,7 +61,7 @@ e_summary_weather_get_html (ESummary *summary) char *html; char *s; - if (summary->weather == NULL) { + if (summary->weather == NULL || summary->weather->weathers == NULL) { return NULL; } @@ -94,18 +94,6 @@ make_url (const char *code) return g_strdup_printf ("http://weather.noaa.gov/cgi-bin/mgetmetar.pl?cccc=%s", code); } -static char * -make_anchor (const char *name, const char *code) -{ - char *url, *anchor; - - url = make_url (code); - anchor = g_strdup_printf ("<a href=\"%s\">%s</a>", url, name); - g_free (url); - - return anchor; -} - static void weather_make_html (Weather *w) { |