[gnome-panel] [clock] Do not place on the map locations with lat = 0 and lon = 0



commit d81098b823a65ebe914e720895dcca1ac11a9f9a
Author: Vincent Untz <vuntz gnome org>
Date:   Wed Aug 12 01:18:06 2009 +0200

    [clock] Do not place on the map locations with lat = 0 and lon = 0
    
    This is really nowhere, and it simply means that the location is not
    set. It's just a timezone.

 applets/clock/clock-map.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/applets/clock/clock-map.c b/applets/clock/clock-map.c
index da73480..beaf6bb 100644
--- a/applets/clock/clock-map.c
+++ b/applets/clock/clock-map.c
@@ -413,6 +413,9 @@ clock_map_place_location (ClockMap *this, ClockLocation *loc, gboolean hilight)
 	gint marker;
 
         clock_location_get_coords (loc, &latitude, &longitude);
+        /* 0/0 means unset, basically */
+        if (latitude == 0 && longitude == 0)
+                return;
 
 	if (hilight)
 		marker = MARKER_HILIGHT;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]