diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2002-09-24 05:51:59 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2002-09-24 05:51:59 +0800 |
commit | 5f9b117b8a1df908b6bea6e07ada689a59636a6d (patch) | |
tree | 248db799a0bb739c19c2d31fb20be3b8baf81d71 /my-evolution/e-summary-weather.c | |
parent | ca308322e60793745b50d6a6ea3ec3a67bd7f382 (diff) | |
download | gsoc2013-evolution-5f9b117b8a1df908b6bea6e07ada689a59636a6d.tar.gz gsoc2013-evolution-5f9b117b8a1df908b6bea6e07ada689a59636a6d.tar.zst gsoc2013-evolution-5f9b117b8a1df908b6bea6e07ada689a59636a6d.zip |
(e_summary_weather_get_html): Don't add any
header if there are no weather stations. [#15101]
(make_anchor): Removed unused function.
svn path=/trunk/; revision=18185
Diffstat (limited to 'my-evolution/e-summary-weather.c')
-rw-r--r-- | my-evolution/e-summary-weather.c | 14 |
1 files changed, 1 insertions, 13 deletions
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) { |