summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Vandersloot <kfv101@psu.edu>2003-03-10 17:41:53 +0000
committerKevin Vandersloot <kevinv@src.gnome.org>2003-03-10 17:41:53 +0000
commit97c7be3f051f4c139fc557ca080061a335af2c59 (patch)
tree397a2fd14967d124eb8fd21f0fcba94db459b606
parentb9871194d16f881302d4246e488cb47cfb0a0b6c (diff)
allow the user to display a radar if one isn't already defined. Fixes bug
2003-03-10 Kevin Vandersloot <kfv101@psu.edu> * weather.c: allow the user to display a radar if one isn't already defined. Fixes bug #53871
-rw-r--r--gweather/ChangeLog5
-rw-r--r--gweather/weather.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gweather/ChangeLog b/gweather/ChangeLog
index a7e6708b8..edeee76dc 100644
--- a/gweather/ChangeLog
+++ b/gweather/ChangeLog
@@ -1,5 +1,10 @@
2003-03-10 Kevin Vandersloot <kfv101@psu.edu>
+ * weather.c: allow the user to display a radar if one isn't already defined. Fixes bug
+ #53871
+
+2003-03-10 Kevin Vandersloot <kfv101@psu.edu>
+
* Locations: Fix Grenoble-Saint-Geoirs. Patch by <Laurent.Vivier@bull.net>.
Fixes bug #101339
diff --git a/gweather/weather.c b/gweather/weather.c
index afe608708..adeedf23c 100644
--- a/gweather/weather.c
+++ b/gweather/weather.c
@@ -1488,11 +1488,11 @@ static void wx_start_open (WeatherInfo *info)
loc = info->location;
g_return_if_fail(loc != NULL);
- if (loc->radar[0] == '-')
- return;
+
if (info->radar_url)
url = g_strdup (info->radar_url);
else {
+ if (loc->radar[0] == '-') return;
url = g_strdup_printf ("http://image.weather.com/web/radar/us_%s_closeradar_medium_usen.jpg", loc->radar);
}