]> err.no Git - mapper/commitdiff
Add some more data to POI info dialog
authorKaj-Michael Lang <milang@tal.org>
Sat, 3 Nov 2007 17:08:06 +0000 (19:08 +0200)
committerKaj-Michael Lang <milang@tal.org>
Sat, 3 Nov 2007 17:08:06 +0000 (19:08 +0200)
src/poi-gui.c

index dddaa85be60025a294916404d39163f2a57be397..dcb1e1a4f0ed6253da4d6996aa85a432c4252a53 100644 (file)
@@ -692,13 +692,20 @@ if (!p)
 phtml=g_strdup_printf(
        "<html><body>"
        "<b>%s</b><br>"
-       "<div><i>Lat: </i>%f<br><i>Lon: </i>%f</id></div>"
-       "<div><i>%s</i><br>%s</div>"
+       "<div>"
+       "<i>Location: </i>%f, %f<br>"
+       "<i>Public: </i>%s<br>"
+       "<i>Source: </i>%s<br>"
+       "</div>"
+       "<div><i>Category:</i><br>%s<br>"
+       "<i>Description:</i><br>%s</div>"
        "<div><i>URL:</i>%s<br><i>Postal Code:</i>%s</div>"
        "</body></html>",
        strlen(p->label)>0 ? p->label : "Unnamed POI",
        p->lat, p->lon,
-       p->cat_desc ? p->cat_desc : "",
+       p->public==1 ? "Yes" : "No",
+       p->source==POI_SOURCE_OSM ? "OpenStreetMap" : "Other",
+       p->cat_label ? p->cat_label : "",
        p->desc ? p->desc : "",
        p->url ? p->url : "",
        p->postal_code ? p->postal_code : "");