aboutsummaryrefslogtreecommitdiffstats
path: root/my-evolution
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2002-09-24 05:51:59 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2002-09-24 05:51:59 +0800
commit5f9b117b8a1df908b6bea6e07ada689a59636a6d (patch)
tree248db799a0bb739c19c2d31fb20be3b8baf81d71 /my-evolution
parentca308322e60793745b50d6a6ea3ec3a67bd7f382 (diff)
downloadgsoc2013-evolution-5f9b117b8a1df908b6bea6e07ada689a59636a6d.tar
gsoc2013-evolution-5f9b117b8a1df908b6bea6e07ada689a59636a6d.tar.gz
gsoc2013-evolution-5f9b117b8a1df908b6bea6e07ada689a59636a6d.tar.bz2
gsoc2013-evolution-5f9b117b8a1df908b6bea6e07ada689a59636a6d.tar.lz
gsoc2013-evolution-5f9b117b8a1df908b6bea6e07ada689a59636a6d.tar.xz
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')
-rw-r--r--my-evolution/ChangeLog6
-rw-r--r--my-evolution/e-summary-weather.c14
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)
{